From b92ce385936276dcaf20ca868e765c7f9fae9487 Mon Sep 17 00:00:00 2001 From: Alexander Medvednikov Date: Sat, 11 Jul 2020 12:45:22 +0200 Subject: [PATCH] os: fix v_realloc call on windows --- vlib/os/os.v | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vlib/os/os.v b/vlib/os/os.v index 31a80da3dc..1c3521e2a7 100644 --- a/vlib/os/os.v +++ b/vlib/os/os.v @@ -791,7 +791,7 @@ pub fn get_raw_stdin() []byte { break } - buf = v_realloc(buf, offset + block_bytes + (block_bytes-bytes_read)) + buf = v_realloc(buf, u32(offset + block_bytes + (block_bytes-bytes_read))) } C.CloseHandle(h_input)