mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
compiler: use *char() cast in C functions to afix warnings
This commit is contained in:
@ -210,6 +210,7 @@ fn new_table(obfuscate bool) &Table {
|
||||
t.register_type('size_t')
|
||||
t.register_type_with_parent('i8', 'int')
|
||||
t.register_type_with_parent('byte', 'int')
|
||||
t.register_type_with_parent('char', 'int') // for C functinos only, to avoid warnings
|
||||
t.register_type_with_parent('i16', 'int')
|
||||
t.register_type_with_parent('u16', 'u32')
|
||||
t.register_type_with_parent('u32', 'int')
|
||||
|
Reference in New Issue
Block a user