From: Stoian Ivanov Date: Thu, 6 Oct 2016 22:07:34 +0000 (+0300) Subject: fix compiler warning for int sizes X-Git-Tag: json-c-0.13-20171207~121^2~1 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=a26305d428ff462ed66e4bf5d2751277e283e44a;p=thirdparty%2Fjson-c.git fix compiler warning for int sizes --- diff --git a/json_object.c b/json_object.c index 9daa9995..e7f63bb7 100644 --- a/json_object.c +++ b/json_object.c @@ -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){