Skip to content

Commit

Permalink
builtin: drop C in int.v (#22245)
Browse files Browse the repository at this point in the history
  • Loading branch information
mengzhuo authored Sep 18, 2024
1 parent 94a412d commit c5837e4
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 c5837e4

Please sign in to comment.