diff --git a/vlib/builtin/int.v b/vlib/builtin/int.v index 1e710875565c31..392aa59f1cb053 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) }