mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
`gcc -W` doesn't error for e.g. u16 == i32, only for u32 == i16. Any u16 value can fit in an i32.
This commit is contained in:
@@ -161,7 +161,7 @@ fn test_bf_from_str() {
|
||||
output := bitfield.from_str(input)
|
||||
mut result := 1
|
||||
for i in 0 .. len {
|
||||
if input[i] != u8(output.get_bit(i)) + 48 {
|
||||
if input[i] != output.get_bit(i) + 48 {
|
||||
result = 0
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user