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

master
Serge A. Zaitsev 11 years ago
parent d0ca2df480
commit da95978033

@ -1,5 +1,4 @@
#include <stdlib.h> #include <stdlib.h>
#include <string.h>
#include "jsmn.h" #include "jsmn.h"
@ -9,7 +8,7 @@
static jsmntok_t *jsmn_alloc_token(jsmn_parser *parser, static jsmntok_t *jsmn_alloc_token(jsmn_parser *parser,
jsmntok_t *tokens, size_t num_tokens) { jsmntok_t *tokens, size_t num_tokens) {
jsmntok_t *tok; jsmntok_t *tok;
if (parser->toknext >= num_tokens) { if (parser->toknext >= (int) num_tokens) {
return NULL; return NULL;
} }
tok = &tokens[parser->toknext++]; tok = &tokens[parser->toknext++];

Loading…
Cancel
Save