builtin: drop C in int.v (#22245)

This commit is contained in:
Meng Zhuo 2024-09-18 21:52:19 +08:00 committed by GitHub
parent 94a412dcc8
commit c5837e4f89
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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) }