mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-05 15:18:49 +00:00
Merge pull request #5479 from wisonye/master
Fixed Index 0 is out of range 0..<0' when using '-default-to-nil-allocator' for FreeBSD/OpenBSD/NetBSD/Linux
This commit is contained in:
@@ -967,8 +967,8 @@ _processor_core_count :: proc() -> int {
|
|||||||
@(private, require_results)
|
@(private, require_results)
|
||||||
_alloc_command_line_arguments :: proc() -> []string {
|
_alloc_command_line_arguments :: proc() -> []string {
|
||||||
res := make([]string, len(runtime.args__))
|
res := make([]string, len(runtime.args__))
|
||||||
for arg, i in runtime.args__ {
|
for _, i in res {
|
||||||
res[i] = string(arg)
|
res[i] = string(runtime.args__[i])
|
||||||
}
|
}
|
||||||
return res
|
return res
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1100,8 +1100,8 @@ _processor_core_count :: proc() -> int {
|
|||||||
@(private, require_results)
|
@(private, require_results)
|
||||||
_alloc_command_line_arguments :: proc() -> []string {
|
_alloc_command_line_arguments :: proc() -> []string {
|
||||||
res := make([]string, len(runtime.args__))
|
res := make([]string, len(runtime.args__))
|
||||||
for arg, i in runtime.args__ {
|
for _, i in res {
|
||||||
res[i] = string(arg)
|
res[i] = string(runtime.args__[i])
|
||||||
}
|
}
|
||||||
return res
|
return res
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1017,8 +1017,8 @@ _processor_core_count :: proc() -> int {
|
|||||||
@(private, require_results)
|
@(private, require_results)
|
||||||
_alloc_command_line_arguments :: proc() -> []string {
|
_alloc_command_line_arguments :: proc() -> []string {
|
||||||
res := make([]string, len(runtime.args__))
|
res := make([]string, len(runtime.args__))
|
||||||
for arg, i in runtime.args__ {
|
for _, i in res {
|
||||||
res[i] = string(arg)
|
res[i] = string(runtime.args__[i])
|
||||||
}
|
}
|
||||||
return res
|
return res
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -917,8 +917,8 @@ _processor_core_count :: proc() -> int {
|
|||||||
@(private, require_results)
|
@(private, require_results)
|
||||||
_alloc_command_line_arguments :: proc() -> []string {
|
_alloc_command_line_arguments :: proc() -> []string {
|
||||||
res := make([]string, len(runtime.args__))
|
res := make([]string, len(runtime.args__))
|
||||||
for arg, i in runtime.args__ {
|
for _, i in res {
|
||||||
res[i] = string(arg)
|
res[i] = string(runtime.args__[i])
|
||||||
}
|
}
|
||||||
return res
|
return res
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user