diff --git a/client/jansson/jansson.h b/client/jansson/jansson.h index 6f42d68c1..0f868c2f2 100644 --- a/client/jansson/jansson.h +++ b/client/jansson/jansson.h @@ -119,7 +119,7 @@ json_t *json_null(void); static JSON_INLINE json_t *json_incref(json_t *json) { - if (json && json->refcount != (size_t) -1) + if (json && json->refcount != (size_t) - 1) JSON_INTERNAL_INCREF(json); return json; } @@ -129,7 +129,7 @@ void json_delete(json_t *json); static JSON_INLINE void json_decref(json_t *json) { - if (json && json->refcount != (size_t) -1 && JSON_INTERNAL_DECREF(json) == 0) + if (json && json->refcount != (size_t) - 1 && JSON_INTERNAL_DECREF(json) == 0) json_delete(json); }