mirror of
https://github.com/vlang/v.git
synced 2025-09-08 14:51:53 -04:00
builtin: drop C in int.v (#22245)
This commit is contained in:
parent
94a412dcc8
commit
c5837e4f89
@ -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) }
|
||||
|
Loading…
x
Reference in New Issue
Block a user