Browse Source

fix compiler warning for int sizes

tags/json-c-0.13-20171207
Stoian Ivanov 9 years ago
parent
commit
a26305d428
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      json_object.c

+ 1
- 1
json_object.c View File

@@ -936,7 +936,7 @@ int json_object_get_string_len(const struct json_object *jso)
} }


int json_object_set_string(json_object* jso, const char* s) { int json_object_set_string(json_object* jso, const char* s) {
return json_object_set_string_len(jso, s, strlen(s));
return json_object_set_string_len(jso, s, (int)(strlen(s)));
} }


int json_object_set_string_len(json_object* jso, const char* s, int len){ int json_object_set_string_len(json_object* jso, const char* s, int len){


Loading…
Cancel
Save