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

all: byte => u8

This commit is contained in:
Alexander Medvednikov
2022-04-15 14:58:56 +03:00
parent b49d873217
commit d4a0d6f73c
221 changed files with 1365 additions and 1365 deletions

View File

@@ -91,7 +91,7 @@ pub fn environ() map[string]string {
mut eline := ''
for c := estrings; *c != 0; {
eline = unsafe { string_from_wide(c) }
eq_index := eline.index_byte(`=`)
eq_index := eline.index_u8(`=`)
if eq_index > 0 {
res[eline[0..eq_index]] = eline[eq_index + 1..]
}
@@ -109,7 +109,7 @@ pub fn environ() map[string]string {
break
}
eline := unsafe { cstring_to_vstring(x) }
eq_index := eline.index_byte(`=`)
eq_index := eline.index_u8(`=`)
if eq_index > 0 {
res[eline[0..eq_index]] = eline[eq_index + 1..]
}