From 3abbdd4a39c3d85c31a2c9c10f10e9c7026c5cde Mon Sep 17 00:00:00 2001 From: Delyan Angelov Date: Wed, 8 Apr 2020 18:01:14 +0300 Subject: [PATCH] tests: fix vlib/os/environment.v --- cmd/tools/vtest-fixed.v | 1 - vlib/os/environment.v | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) 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(`=`)