]> git.ipfire.org Git - thirdparty/json-c.git/commitdiff
fix compiler warning for int sizes
authorStoian Ivanov <sdr@mail.bg>
Thu, 6 Oct 2016 22:07:34 +0000 (01:07 +0300)
committerStoian Ivanov <sdr@mail.bg>
Thu, 6 Oct 2016 22:07:34 +0000 (01:07 +0300)
json_object.c

index 9daa9995b273f907b4a3ad4c5360e7c3b08617df..e7f63bb7d3a71fe4e4b31740f1de4151c200a03e 100644 (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) {
-       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){