From 1ec7bd1388fc9d3f3427b4419261de41391cf5c9 Mon Sep 17 00:00:00 2001 From: "osboxes.org" Date: Tue, 31 Dec 2019 21:39:55 +0100 Subject: [PATCH] style --- client/jansson/jansson.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); }