ソースを参照

Fixed 'Odin/core/os/os_linux.odin(1104:7) Index 0 is out of range 0..<0' when using '-default-to-nil-allocator'.

WisonYe 1 週間 前
コミット
26e4104ac9
1 ファイル変更2 行追加2 行削除
  1. 2 2
      core/os/os_linux.odin

+ 2 - 2
core/os/os_linux.odin

@@ -1100,8 +1100,8 @@ _processor_core_count :: proc() -> int {
 @(private, require_results)
 _alloc_command_line_arguments :: proc() -> []string {
 	res := make([]string, len(runtime.args__))
-	for arg, i in runtime.args__ {
-		res[i] = string(arg)
+	for arg, i in  arg {
+		res[i] = string(runtime.args__[i])
 	}
 	return res
 }