From: <jso...@li...> - 2013-08-08 00:39:14
|
Revision: 272 http://sourceforge.net/p/jsoncpp/code/272 Author: aaronjacobs Date: 2013-08-08 00:39:12 +0000 (Thu, 08 Aug 2013) Log Message: ----------- 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. Modified Paths: -------------- trunk/jsoncpp/src/lib_json/json_writer.cpp trunk/jsoncpp/src/test_lib_json/main.cpp This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |