Make runtime.memset use int for the length from uint
This commit is contained in:
1 parent
8c4197af38
commit
bfc92d0aaf
3 files changed
+5
-3
No files matched your search
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user