aboutsummaryrefslogtreecommitdiff
path: root/core/runtime
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2021-09-23 23:43:29 +0100
committergingerBill <bill@gingerbill.org>2021-09-23 23:43:29 +0100
commitbfc92d0aaf4e04b8378266e2ab25a8e381e34874 (patch)
tree71e8b0219aeaa315c4e6347ca883115e5fe2c5de /core/runtime
parent8c4197af38e6a342554c9b5602206916d983c6bc (diff)
Make `runtime.memset` use `int` for the length from `uint`
Diffstat (limited to 'core/runtime')
-rw-r--r--core/runtime/procs.odin2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/runtime/procs.odin b/core/runtime/procs.odin
index 94624eea6..0aaf49928 100644
--- a/core/runtime/procs.odin
+++ b/core/runtime/procs.odin
@@ -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)