mirror of
https://github.com/vlang/v.git
synced 2025-08-03 17:57:59 -04:00
tests: cast C.AF_INET to u16 to avoid type error (#24933)
This commit is contained in:
parent
d87b8c2627
commit
e3b07d9ddc
@ -13,5 +13,5 @@ fn xint(n int) bool {
|
||||
fn test_const() {
|
||||
assert xint(C.EOF) == true // a random libc const is int by default
|
||||
|
||||
assert x16(C.AF_INET) == true // defined in V's net module
|
||||
assert x16(u16(C.AF_INET)) == true // defined in V's net module
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user