mirror of
https://github.com/akheron/jansson.git
synced 2025-04-07 06:25:02 +00:00
Fix json_real_set() to return -1 on error
This commit is contained in:
parent
23d563434a
commit
ee13c667f1
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue