mirror of
https://github.com/json-c/json-c.git
synced 2026-11-10 07:50:14 +08:00
fix compiler warning for int sizes
This commit is contained in:
1 parent
e518b22b72
commit
a26305d428
1 file changed
+1
-1
+1
-1
@@ -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){
|
||||||
|
|||||||
Reference in new issue
Block a user