json-parse not reading 64-bit number

Q&A's, tips, howto's
Post Reply
ralph.ronnquist
Posts: 216
Joined: Mon Jun 02, 2014 1:40 am
Location: Melbourne, Australia

json-parse not reading 64-bit number

Post by ralph.ronnquist »

Apparently json-parse can only read 32-bit numbers, and it results in MAXINT without error for larger numbers. Luckily it seems to be a minor patch to expand this to 64 bit numbers. As attached for today's 10.6.3.
json-64bit-number.patch.gz
(253 Bytes) Downloaded 125 times

Lutz
Posts: 5279
Joined: Thu Sep 26, 2002 4:45 pm
Location: Pasadena, California
Contact:

Re: json-parse not reading 64-bit number

Post by Lutz »

Thanks for the change Ralph, will be added - was fine on 64-bit newLISP, but now also works on 32-bit newLISP.

Post Reply