Add other constants to c and libc
This commit is contained in:
1 parent
297cdde144
commit
9980f81062
5 files changed
+14
-3
No files matched your search
+1
-1
@@ -4,7 +4,7 @@ import "core:runtime"
|
||||
import "core:intrinsics"
|
||||
|
||||
set :: proc "contextless" (data: rawptr, value: byte, len: int) -> rawptr #no_bounds_check {
|
||||
return runtime.memset(data, i32(value), len)
|
||||
return runtime.memset(data, i32(value), int(len))
|
||||
}
|
||||
zero :: proc "contextless" (data: rawptr, len: int) -> rawptr {
|
||||
return set(data, 0, len)
|
||||
|
||||
Reference in new issue
Block a user