This website works better with JavaScript.
Home
Issues
Pull Requests
Milestones
AI流水线
Repositories
Datasets
Forum
实训
竞赛
大数据
Register
Sign In
jdk-build-libs
/
json-c
Not watched
Unwatch
Watch all
Watch but not notify
1
Star
0
Fork
0
Code
Releases
11
Wiki
evaluate
Activity
Issues
0
Pull Requests
0
Datasets
Model
Cloudbrain
HPC
Browse Source
fix json_object_get_boolean() to behave like documented: must return true for objects and arrays
pull/659/head
Lukas Zeller
5 years ago
parent
cf30cba4ac
commit
b68d2e0c1d
1 changed files
with
2 additions
and
1 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+2
-1
json_object.c
+ 2
- 1
json_object.c
View File
@@ -702,7 +702,8 @@ json_bool json_object_get_boolean(const struct json_object *jso)
}
case json_type_double: return (JC_DOUBLE_C(jso)->c_double != 0);
case json_type_string: return (JC_STRING_C(jso)->len != 0);
default: return 0;
case json_type_null: return 0;
default: return 1;
}
}
Write
Preview
Loading…
Cancel
Save