mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
builtin: remove unnecessary casts for defunct small unsigned warning (#14108)
This commit is contained in:
parent
0260c2a552
commit
1533b77404
@ -775,7 +775,7 @@ fn test_byte_keys() {
|
||||
m[i]++
|
||||
assert m[i] == i + 1
|
||||
}
|
||||
assert m.len == int(byte_max)
|
||||
assert m.len == byte_max
|
||||
keys := m.keys()
|
||||
for i in u8(0) .. byte_max {
|
||||
assert keys[i] == i
|
||||
@ -827,7 +827,7 @@ fn test_u16_keys() {
|
||||
m[i]++
|
||||
assert m[i] == i + 1
|
||||
}
|
||||
assert m.len == int(end)
|
||||
assert m.len == end
|
||||
keys := m.keys()
|
||||
for i in u16(0) .. end {
|
||||
assert keys[i] == i
|
||||
|
@ -763,7 +763,7 @@ fn test_byte_keys() {
|
||||
m[i]++
|
||||
assert m[i] == i + 1
|
||||
}
|
||||
assert m.len == int(byte_max)
|
||||
assert m.len == byte_max
|
||||
keys := m.keys()
|
||||
for i in u8(0) .. byte_max {
|
||||
assert keys[i] == i
|
||||
@ -815,7 +815,7 @@ fn test_u16_keys() {
|
||||
m[i]++
|
||||
assert m[i] == i + 1
|
||||
}
|
||||
assert m.len == int(end)
|
||||
assert m.len == end
|
||||
keys := m.keys()
|
||||
for i in u16(0) .. end {
|
||||
assert keys[i] == i
|
||||
|
@ -1937,7 +1937,7 @@ pub fn (name string) match_glob(pattern string) bool {
|
||||
mut is_inverted := false
|
||||
mut inner_match := false
|
||||
mut inner_idx := bstart + 1
|
||||
mut inner_c := u8(0)
|
||||
mut inner_c := 0
|
||||
if inner_idx < plen {
|
||||
inner_c = pattern[inner_idx]
|
||||
if inner_c == `^` {
|
||||
|
Loading…
Reference in New Issue
Block a user