mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
remove u8 and i32 from tests and examples
This commit is contained in:
@ -758,7 +758,7 @@ fn (table &Table) cgen_name_type_pair(name, typ string) string {
|
||||
fn is_valid_int_const(val, typ string) bool {
|
||||
x := val.int()
|
||||
switch typ {
|
||||
case 'u8': return 0 <= x && x <= math.MaxU8
|
||||
case 'byte': return 0 <= x && x <= math.MaxU8
|
||||
case 'u16': return 0 <= x && x <= math.MaxU16
|
||||
//case 'u32': return 0 <= x && x <= math.MaxU32
|
||||
//case 'u64': return 0 <= x && x <= math.MaxU64
|
||||
|
Reference in New Issue
Block a user