From 67d3188a58f8c9358fdc48385d06bf2e3700668f Mon Sep 17 00:00:00 2001 From: Jordan Cristiano Date: Thu, 15 Oct 2015 01:08:02 -0400 Subject: [PATCH] Fixed json_checker warnings from vs2013 --- external/json_checker/JSON_checker.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/external/json_checker/JSON_checker.cpp b/external/json_checker/JSON_checker.cpp index b3552e2..b7c6a6a 100644 --- a/external/json_checker/JSON_checker.cpp +++ b/external/json_checker/JSON_checker.cpp @@ -189,7 +189,7 @@ enum modes { MODE_OBJECT, }; -static int +static bool reject(JSON_checker jc) { /* @@ -201,7 +201,7 @@ reject(JSON_checker jc) } -static int +static bool push(JSON_checker jc, int mode) { /* @@ -216,7 +216,7 @@ push(JSON_checker jc, int mode) } -static int +static bool pop(JSON_checker jc, int mode) { /* @@ -394,5 +394,5 @@ JSON_checker_done(JSON_checker jc) */ int result = jc->state == OK && pop(jc, MODE_DONE); reject(jc); - return result; + return (result != 0); }