mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
json: fix #1751; support unsigned integers
This commit is contained in:

committed by
Alexander Medvednikov

parent
f34d14d901
commit
5df31c16f7
@@ -124,7 +124,8 @@ string res = tos2("");
|
||||
fn is_js_prim(typ string) bool {
|
||||
return typ == 'int' || typ == 'string' ||
|
||||
typ == 'bool' || typ == 'f32' || typ == 'f64' ||
|
||||
typ == 'i8' || typ == 'i16' || typ == 'i32' || typ == 'i64'
|
||||
typ == 'i8' || typ == 'i16' || typ == 'i32' || typ == 'i64' ||
|
||||
typ == 'u8' || typ == 'u16' || typ == 'u32' || typ == 'u64'
|
||||
}
|
||||
|
||||
fn (p mut Parser) decode_array(array_type string) string {
|
||||
|
Reference in New Issue
Block a user