projects
/
jansson.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fix json_real_set() to return -1 on error
[jansson.git]
/
src
/
value.c
diff --git
a/src/value.c
b/src/value.c
index
8d05d91
..
547eb5d
100644
(file)
--- a/
src/value.c
+++ b/
src/value.c
@@
-751,7
+751,7
@@
double json_real_value(const json_t *json)
int json_real_set(json_t *json, double value)
{
if(!json_is_real(json))
- return
0
;
+ return
-1
;
json_to_real(json)->value = value;