From 7f0c8d1eec50f4fa05e8276db58931c09da08a7f Mon Sep 17 00:00:00 2001 From: Delyan Angelov Date: Mon, 15 Mar 2021 17:37:06 +0200 Subject: [PATCH] builtin: fix a compilation warning with `-d debug_malloc` --- vlib/builtin/builtin.c.v | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vlib/builtin/builtin.c.v b/vlib/builtin/builtin.c.v index 6d61cedaf2..8f3c57cb72 100644 --- a/vlib/builtin/builtin.c.v +++ b/vlib/builtin/builtin.c.v @@ -193,7 +193,7 @@ pub fn malloc(n int) byteptr { $if debug_malloc ? { // Fill in the memory with something != 0, so it is easier to spot // when the calling code wrongly relies on it being zeroed. - C.memset(res, 0x88, n) + unsafe { C.memset(res, 0x88, n) } } return res }