diff --git a/cmd/tools/vtest-fixed.v b/cmd/tools/vtest-fixed.v index 179c6a35fc..ac102d5a76 100644 --- a/cmd/tools/vtest-fixed.v +++ b/cmd/tools/vtest-fixed.v @@ -31,7 +31,6 @@ const ( 'vlib/net/http/http_test.v', 'vlib/net/socket_test.v', 'vlib/net/socket_udp_test.v', - 'vlib/os/environment_test.v', // Linux only 'vlib/regex/regex_test.v', 'vlib/sqlite/sqlite_test.v', // Linux only 'vlib/strconv/ftoa/f32_f64_to_string_test.v', diff --git a/vlib/os/environment.v b/vlib/os/environment.v index c41b13aaf1..16863a732e 100644 --- a/vlib/os/environment.v +++ b/vlib/os/environment.v @@ -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(`=`)