Fixed Index 0 is out of range 0..<0' when using '-default-to-nil-allocator' for Linux/OpenBSD/NetBSD.

This commit is contained in:
WisonYe
2025-07-19 12:03:22 +12:00
parent 26e4104ac9
commit b9f08412ae
3 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -1100,7 +1100,7 @@ _processor_core_count :: proc() -> int {
@(private, require_results)
_alloc_command_line_arguments :: proc() -> []string {
res := make([]string, len(runtime.args__))
for arg, i in arg {
for arg, i in res {
res[i] = string(runtime.args__[i])
}
return res