From 4e1611eec93fa10a67d9a637d4c6547837dda025 Mon Sep 17 00:00:00 2001 From: Eric Fischer Date: Mon, 28 Aug 2017 14:08:05 -0700 Subject: [PATCH] Fix boolean comparisions --- evaluator.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/evaluator.cpp b/evaluator.cpp index 2b629d4..d882578 100644 --- a/evaluator.cpp +++ b/evaluator.cpp @@ -51,7 +51,7 @@ int compare(mvt_value one, json_object *two, bool &fail) { return false; // bool vs non-bool } - bool b = two->type = JSON_TRUE; + bool b = two->type != JSON_FALSE; return one.numeric_value.bool_value > b; }