[Zrouter-src] ZRouter.org: push to zconf++ zconf++/json_reader.cc

zrouter-src at zrouter.org zrouter-src at zrouter.org
Wed Feb 22 14:23:27 UTC 2012


details:   /rev/15035caa0738
changeset: 64:15035caa0738
user:      "Nicolai Petri <nicolai at petri.dk>"
date:      Wed Feb 22 15:23:08 2012 +0100
description:
Parse booleans correctly (before it became 0 or 1)

diffstat:

 zconf++/json_reader.cc |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (16 lines):

diff -r 139cda20c071 -r 15035caa0738 zconf++/json_reader.cc
--- a/zconf++/json_reader.cc	Wed Feb 22 14:56:09 2012 +0100
+++ b/zconf++/json_reader.cc	Wed Feb 22 15:23:08 2012 +0100
@@ -138,10 +138,10 @@
 				successful = decodeString( token );
 				break;
 			case tokenTrue:
-				currentValue() = true;
+				currentValue() = Value(true);
 				break;
 			case tokenFalse:
-				currentValue() = false;
+				currentValue() = Value(false);
 				break;
 			case tokenNull:
 				currentValue() = Value();


More information about the Zrouter-src mailing list