Make -vet happy on *nix

This commit is contained in:
gingerBill
2019-08-13 22:39:53 +01:00
parent 0a63690b39
commit 980890ee8a
2 changed files with 6 additions and 6 deletions
+3 -3
View File
@@ -392,9 +392,9 @@ dlerror :: proc() -> string {
_alloc_command_line_arguments :: 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__ { for arg, i in runtime.args__ {
args[i] = string(arg); res[i] = string(arg);
} }
return args; return res;
} }
+3 -3
View File
@@ -287,9 +287,9 @@ dlerror :: proc() -> string {
_alloc_command_line_arguments :: 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__ { for arg, i in runtime.args__ {
args[i] = string(arg); res[i] = string(arg);
} }
return args; return res;
} }