diff options
author | Abhijeet Vhotkar <abhijeetvhotkar@gmail.com> | 2018-03-10 18:16:29 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-03-10 18:16:29 -0500 |
commit | 9a34826efbab3d5fa9dbb9cf837c392395c7ef79 (patch) | |
tree | 6011fe431de4393c9212b4d5db78759080d65509 /redist/json_helpers.c | |
parent | e5a9bff729fb0c596daed5cdf45683e11c666766 (diff) | |
parent | c687e3ea63a5d974fd35feb07fe7fb87d4375e6a (diff) | |
download | libsurvive-9a34826efbab3d5fa9dbb9cf837c392395c7ef79.tar.gz libsurvive-9a34826efbab3d5fa9dbb9cf837c392395c7ef79.tar.bz2 |
Merge pull request #1 from cnlohr/master
Pulling new changes
Diffstat (limited to 'redist/json_helpers.c')
-rw-r--r-- | redist/json_helpers.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/redist/json_helpers.c b/redist/json_helpers.c index af7ddda..109708a 100644 --- a/redist/json_helpers.c +++ b/redist/json_helpers.c @@ -121,7 +121,7 @@ char* load_file_to_mem(const char* path) { fseek( f, 0, SEEK_SET ); char * JSON_STRING = malloc( len + 1); memset(JSON_STRING,0,len+1); - int i = fread( JSON_STRING, len, 1, f ); i = i; //Ignore return value. + size_t i = fread( JSON_STRING, len, 1, f ); i = i; //Ignore return value. fclose( f ); return JSON_STRING; } @@ -193,7 +193,7 @@ void json_load_file(const char* path) { } else if (value_t->type == JSMN_OBJECT) { printf("Begin Object\n"); if (json_begin_object != NULL) json_begin_object(tag); - children = value_t->size +1; //+1 to account for this loop where we are not yed parsing children + children = (int16_t)(value_t->size +1); //+1 to account for this loop where we are not yed parsing children // i += decode_jsmn_object(JSON_STRING, tokens+i+2,value_t->size); } else { |