1
0
Fork 0
mirror of https://github.com/ossrs/srs.git synced 2025-03-09 15:49:59 +00:00

Fix build warning

This commit is contained in:
winlin 2018-12-09 22:48:47 +08:00
parent ef3e35f173
commit f1ab8fecac
4 changed files with 27 additions and 26 deletions

View file

@ -1700,7 +1700,7 @@ SrsJsonAny* srs_json_parse_tree(json_value* node)
return SrsJsonAny::boolean(node->u.boolean != 0);
case json_object: {
SrsJsonObject* obj = SrsJsonAny::object();
for (int i = 0; i < node->u.object.length; i++) {
for (int i = 0; i < (int)node->u.object.length; i++) {
json_object_entry& entry = node->u.object.values[i];
SrsJsonAny* value = srs_json_parse_tree(entry.value);
@ -1715,7 +1715,7 @@ SrsJsonAny* srs_json_parse_tree(json_value* node)
}
case json_array: {
SrsJsonArray* arr = SrsJsonAny::array();
for (int i = 0; i < node->u.array.length; i++) {
for (int i = 0; i < (int)node->u.array.length; i++) {
json_value* p = node->u.array.values[i];
SrsJsonAny* value = srs_json_parse_tree(p);