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

tests: update for stricter type checks

This commit is contained in:
Uwe Krüger
2020-05-24 21:07:32 +02:00
committed by GitHub
parent 4e66c12557
commit fd4d28b7b6
25 changed files with 88 additions and 76 deletions

View File

@ -172,9 +172,9 @@ fn up_low(s string, upper_flag bool) string {
if ch_len == 1 {
if upper_flag==true {
str_res[index] = C.toupper(s.str[index])
str_res[index] = byte(C.toupper(s.str[index]))
}else{
str_res[index] = C.tolower(s.str[index])
str_res[index] = byte(C.tolower(s.str[index]))
}
}
else if ch_len > 1 && ch_len < 5{