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

v: fix build and failing tests on arm64 (#12840)

This commit is contained in:
spaceface
2021-12-15 08:00:38 +01:00
committed by GitHub
parent 1c629f4a93
commit d13fe7843c
4 changed files with 19 additions and 4 deletions

View File

@@ -131,7 +131,12 @@ fn test_bin() {
x5 := byte(0b11111111)
assert x5 == 255
x6 := char(0b11111111)
assert int(x6) == -1
// C.char is unsigned on arm64, but signed on amd64, by default
$if arm64 {
assert int(x6) == 255
} $else {
assert int(x6) == -1
}
x7 := 0b0
assert x7 == 0
x8 := -0b0