From c5837e4f89ff4b09fdd120d7d754ae2f5a4ddb9d Mon Sep 17 00:00:00 2001 From: Meng Zhuo Date: Wed, 18 Sep 2024 21:52:19 +0800 Subject: [PATCH] builtin: drop C in int.v (#22245) --- vlib/builtin/int.v | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vlib/builtin/int.v b/vlib/builtin/int.v index 1e71087556..392aa59f1c 100644 --- a/vlib/builtin/int.v +++ b/vlib/builtin/int.v @@ -606,7 +606,7 @@ pub fn (b u8) repeat(count int) string { } mut bytes := unsafe { malloc_noscan(count + 1) } unsafe { - C.memset(bytes, b, count) + vmemset(bytes, b, count) bytes[count] = `0` } return unsafe { bytes.vstring_with_len(count) }