From a26305d428ff462ed66e4bf5d2751277e283e44a Mon Sep 17 00:00:00 2001 From: Stoian Ivanov Date: Fri, 7 Oct 2016 01:07:34 +0300 Subject: [PATCH] fix compiler warning for int sizes --- json_object.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/json_object.c b/json_object.c index 9daa999..e7f63bb 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){