Make runtime.memset use int for the length from uint

This commit is contained in:
gingerBill
2021-09-23 23:43:29 +01:00
parent 8c4197af38
commit bfc92d0aaf
3 changed files with 5 additions and 3 deletions
+1 -1
View File
@@ -1,7 +1,7 @@
package runtime
@(link_name="memset")
memset :: proc "c" (ptr: rawptr, val: i32, len: uint) -> rawptr #no_bounds_check {
memset :: proc "c" (ptr: rawptr, val: i32, len: int) -> rawptr #no_bounds_check {
if ptr != nil && len != 0 {
b := byte(val)
p := ([^]byte)(ptr)