diff --git a/src/sentry_json.c b/src/sentry_json.c index ede1f50fc..904ee4825 100644 --- a/src/sentry_json.c +++ b/src/sentry_json.c @@ -433,7 +433,7 @@ tokens_to_value(jsmntok_t *tokens, size_t token_count, const char *buf, do { \ size_t child_consumed = tokens_to_value( \ tokens + offset, token_count - offset, buf, Target); \ - if (child_consumed == (size_t) - 1) { \ + if (child_consumed == (size_t)-1) { \ goto error; \ } \ offset += child_consumed; \