Skip to content

Commit

Permalink
builtin: drop C in int.v
Browse files Browse the repository at this point in the history
  • Loading branch information
mengzhuo committed Sep 18, 2024
1 parent c0f7244 commit 3df6f30
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vlib/builtin/int.v
Original file line number Diff line number Diff line change
Expand Up @@ -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) }
Expand Down

0 comments on commit 3df6f30

Please sign in to comment.