Remove strings dependency from core:sys/windows

This commit is contained in:
gingerBill
2022-06-02 13:02:16 +01:00
parent 01ea0d6f1e
commit fb49841b1d
7 changed files with 35 additions and 20 deletions
+1 -1
View File
@@ -152,7 +152,7 @@ slice_ptr :: proc "contextless" (ptr: ^$T, len: int) -> []T {
return ([^]T)(ptr)[:len]
}
byte_slice :: #force_inline proc "contextless" (data: rawptr, len: int) -> []byte {
byte_slice :: #force_inline proc "contextless" (data: rawptr, #any_int len: int) -> []byte {
return ([^]u8)(data)[:max(len, 0)]
}