Remove strings dependency from core:sys/windows

This commit is contained in:
gingerBill committed 2022-06-02 13:02:16 +01:00
1 parent 01ea0d6f1e
commit fb49841b1d
7 files changed
+35 -20

No files matched your search

+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)]
}