json: Accurately parse very large real numbers.
authorBen Pfaff <blp@nicira.com>
Wed, 16 Dec 2009 18:55:46 +0000 (10:55 -0800)
committerBen Pfaff <blp@nicira.com>
Wed, 16 Dec 2009 18:56:04 +0000 (10:56 -0800)
commita105c27b4e24ac0d29ba131eca00793bc3385dca
treee5ace70632747dc10209aa04650740f7022462ea
parentb3a43165749f80d7f3eda34e2e2b07f7a349e298
json: Accurately parse very large real numbers.

The test for whether a real number was outside the valid range was
imprecise and failed at the edge of the real range.  This commit changes
the code to use the C library's strtod(), which presumably does better.
lib/json.c
tests/json.at