From e399c07a2fbac26106bff01536bb6607e639e4b3 Mon Sep 17 00:00:00 2001 From: Alexander Medvednikov Date: Mon, 5 Apr 2021 06:42:20 +0300 Subject: [PATCH] os: fix a C warning --- vlib/os/environment.c.v | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vlib/os/environment.c.v b/vlib/os/environment.c.v index fcd2c65ca3..cc21e62537 100644 --- a/vlib/os/environment.c.v +++ b/vlib/os/environment.c.v @@ -99,7 +99,7 @@ pub fn environ() map[string]string { if isnil(derefed) { break } - eline := unsafe { cstring_to_vstring(derefed) } + eline := unsafe { cstring_to_vstring(&byte(derefed)) } eq_index := eline.index_byte(`=`) if eq_index > 0 { res[eline[0..eq_index]] = eline[eq_index + 1..]