From da959780339c33ebe0c3d0f86351a9734d6eb08b Mon Sep 17 00:00:00 2001 From: "Serge A. Zaitsev" Date: Sun, 9 Feb 2014 17:04:39 +0200 Subject: [PATCH] added cast size_t to int to avoid warnings, removed string.h header since it was merged by accident --- jsmn.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/jsmn.c b/jsmn.c index 4f70adb..a8e71ac 100644 --- a/jsmn.c +++ b/jsmn.c @@ -1,5 +1,4 @@ #include -#include #include "jsmn.h" @@ -9,7 +8,7 @@ static jsmntok_t *jsmn_alloc_token(jsmn_parser *parser, jsmntok_t *tokens, size_t num_tokens) { jsmntok_t *tok; - if (parser->toknext >= num_tokens) { + if (parser->toknext >= (int) num_tokens) { return NULL; } tok = &tokens[parser->toknext++];