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

tests: fix vlib/os/environment.v

This commit is contained in:
Delyan Angelov
2020-04-08 18:01:14 +03:00
parent 10c4c44d03
commit 3abbdd4a39
2 changed files with 1 additions and 2 deletions

View File

@@ -67,7 +67,7 @@ pub fn environ() map[string]string {
}
C.FreeEnvironmentStringsW(estrings)
} $else {
e := &byteptr(&C.environ)
e := &charptr(C.environ)
for i := 0; !isnil(e[i]); i++ {
eline := cstring_to_vstring(e[i])
eq_index := eline.index_byte(`=`)