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

ci: fix all -cstrict warnings with gcc and clang (#9792)

This commit is contained in:
spaceface
2021-04-19 14:38:48 +02:00
committed by GitHub
parent dde3189e66
commit 73352583e7
37 changed files with 295 additions and 296 deletions

View File

@@ -64,7 +64,7 @@ fn test_unsigned_cast() {
assert '-0x00_0_f_ff'.u32() == 0
assert '10_000_000'.u32() == 10000000
for n in 0 .. 100 {
for n in 0 .. u32(100) {
s := n.str() + 'z'
assert s.u32() == n
}
@@ -92,7 +92,7 @@ fn test_unsigned_cast() {
assert '-0x00_0_f_ff'.u64() == 0
assert '10_000_000'.u64() == 10000000
for n in 0 .. 10000 {
for n in 0 .. u64(10000) {
s := n.str() + 'z'
assert s.u64() == n
}