Commits

Serge Zaitsev committed eed485d

added cast size_t to int to avoid warnings, removed string.h header since it was merged by accident

  • Participants
  • Parent commits cbac5ce

Comments (0)

Files changed (1)

 #include <stdlib.h>
-#include <string.h>
 
 #include "jsmn.h"
 
 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++];