1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

checker: Revert part of small_unsigned == signed (#13967) (#14075)

`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:
Nick Treleaven
2022-04-18 19:30:09 +01:00
committed by GitHub
parent 7ef64bde50
commit 4400efeb9f
6 changed files with 6 additions and 33 deletions

View File

@@ -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
}
}