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
@@ -41,4 +41,6 @@ foreign libc {
|
||||
strerror :: proc(errnum: int) -> [^]char ---
|
||||
strlen :: proc(s: cstring) -> size_t ---
|
||||
}
|
||||
memset : proc "c" (s: rawptr, c: int, n: size_t) -> rawptr : runtime.memset
|
||||
memset :: proc "c" (s: rawptr, c: int, n: size_t) -> rawptr {
|
||||
return runtime.memset(s, c, auto_cast n)
|
||||
}
|
||||
Reference in new issue
Block a user