base::Value and integers

7 views
Skip to first unread message

Jochen Eisinger

unread,
Sep 16, 2010, 10:53:40 AM9/16/10
to chromium-dev
Is there a specific reason, base::Value uses 32bit integers? Seems
like the pref system is working around this by storing 64bit integers
as strings plus it is not possible to send 64bit integers to
extensions (as integers) because base/json uses base::Values to
read/write data :-/

-jochen

Jochen Eisinger

unread,
Sep 16, 2010, 11:08:36 AM9/16/10
to Erik Arvidsson, chromium-dev
the JSON parser of v8 happily stores 64bit integers. Also, I didn't
find something in RFC that would restrict the bit size of numbers.

On Thu, Sep 16, 2010 at 8:04 AM, Erik Arvidsson <a...@google.com> wrote:
> The preferences are stored as JSON so we are limited to the rules of JSON.
> Therefore we cannot use int64

>> --
>> Chromium Developers mailing list: chromi...@chromium.org
>> View archives, change email options, or unsubscribe:
>> http://groups.google.com/a/chromium.org/group/chromium-dev
>

Jochen Eisinger

unread,
Sep 16, 2010, 11:13:27 AM9/16/10
to Erik Arvidsson, chromium-dev
urks, actually it does not :-/ it converts the numbers to reals and back
Reply all
Reply to author
Forward
0 new messages