From e3b07d9ddc7a64e098b38688c08a079a8d857c9b Mon Sep 17 00:00:00 2001 From: Kim Shrier Date: Sat, 19 Jul 2025 19:58:30 -0600 Subject: [PATCH] tests: cast C.AF_INET to u16 to avoid type error (#24933) --- vlib/v/tests/c_const_u8_test.v | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vlib/v/tests/c_const_u8_test.v b/vlib/v/tests/c_const_u8_test.v index 15f912a500..4fce58501b 100644 --- a/vlib/v/tests/c_const_u8_test.v +++ b/vlib/v/tests/c_const_u8_test.v @@ -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 }