From 980890ee8a5fdfd1dc0ae6412fcf004eb250bb08 Mon Sep 17 00:00:00 2001 From: gingerBill Date: Tue, 13 Aug 2019 22:39:53 +0100 Subject: [PATCH] Make -vet happy on *nix --- core/os/os_linux.odin | 6 +++--- core/os/os_osx.odin | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/core/os/os_linux.odin b/core/os/os_linux.odin index 1587e2ad1..13eab5def 100644 --- a/core/os/os_linux.odin +++ b/core/os/os_linux.odin @@ -392,9 +392,9 @@ dlerror :: proc() -> string { _alloc_command_line_arguments :: proc() -> []string { - args := make([]string, len(runtime.args__)); + res := make([]string, len(runtime.args__)); for arg, i in runtime.args__ { - args[i] = string(arg); + res[i] = string(arg); } - return args; + return res; } diff --git a/core/os/os_osx.odin b/core/os/os_osx.odin index 302cba76a..3185fecc6 100644 --- a/core/os/os_osx.odin +++ b/core/os/os_osx.odin @@ -287,9 +287,9 @@ dlerror :: proc() -> string { _alloc_command_line_arguments :: proc() -> []string { - args := make([]string, len(runtime.args__)); + res := make([]string, len(runtime.args__)); for arg, i in runtime.args__ { - args[i] = string(arg); + res[i] = string(arg); } - return args; + return res; }