mirror of
https://github.com/shadowsocks/shadowsocks-libev.git
synced 2026-10-28 11:43:50 +00:00
Fix a compile error with mingw64
Fix an error below.
json.c:135:42: error: cast from pointer to integer of different size [-Werror=pointer-to-int-cast]
(state, values_size + ((unsigned long) value->u.object.values), 0)) )
^
This commit is contained in:
+1
-1
@@ -132,7 +132,7 @@ static int new_value
|
||||
values_size = sizeof (*value->u.object.values) * value->u.object.length;
|
||||
|
||||
if (! ((*(void **) &value->u.object.values) = json_alloc
|
||||
(state, values_size + ((unsigned long) value->u.object.values), 0)) )
|
||||
(state, values_size + ((unsigned long long) value->u.object.values), 0)) )
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user