Keep -vet happy

This commit is contained in:
gingerBill
2023-07-31 12:19:25 +01:00
parent f17077c05c
commit 5dba08fb3b
3 changed files with 27 additions and 30 deletions
+3 -3
View File
@@ -73,10 +73,10 @@ test_classify_f16 :: proc(t: ^testing.T) {
}
/* Check all subnormals (exponent 0, 10-bit significand non-zero) */
for i :u16 = 1; i < 0x400; i += 1 {
v :f16 = transmute(f16)i
for i in u16(1)..<0x400 {
v := transmute(f16)i
r = classify_f16(v)
e :Float_Class: Subnormal
e :: Float_Class.Subnormal
tc.expect(t, r == e, fmt.tprintf("i:%d %s(%h) -> %v != %v", i, #procedure, v, r, e))
}
}