summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/mir_core/src/json/JSONNode.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mir_core/src/json/JSONNode.h b/src/mir_core/src/json/JSONNode.h
index 3d7fee9be5..0812a70b71 100644
--- a/src/mir_core/src/json/JSONNode.h
+++ b/src/mir_core/src/json/JSONNode.h
@@ -519,7 +519,7 @@ inline bool JSONNode::isnull(void) const
inline JSONNode::operator bool() const
{
JSON_CHECK_INTERNAL();
- return internal->type() == JSON_NULL;
+ return internal->type() != JSON_NULL;
}
inline const json_char* JSONNode::name(void) const
{