Menu

Commit [r272]  Maximize  Restore  History

Replaced the complex implementation of valueToString(double).

The previous one was confusing and prone to buffer overflows, and didn't
work correctly with 16-decimal-digit numbers. The new one simply uses
snprintf with a standard format string.

The major change is that we don't always print a decimal point now.
Fortunately, JSON doesn't distinguish between integers and reals.

aaronjacobs 2013-08-08

changed /trunk/jsoncpp/src/lib_json/json_writer.cpp
changed /trunk/jsoncpp/src/test_lib_json/main.cpp
/trunk/jsoncpp/src/lib_json/json_writer.cpp Diff Switch to side-by-side view
Loading...
/trunk/jsoncpp/src/test_lib_json/main.cpp Diff Switch to side-by-side view
Loading...
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.