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:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user