summary refs log tree commit diff stats
path: root/compiler/tccgen.nim
diff options
context:
space:
mode:
Diffstat (limited to 'compiler/tccgen.nim')
-rw-r--r--compiler/tccgen.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/tccgen.nim b/compiler/tccgen.nim
index 2301ad404..8397185e8 100644
--- a/compiler/tccgen.nim
+++ b/compiler/tccgen.nim
@@ -70,7 +70,7 @@ proc compileCCode*(ccode: string) =
 
 proc run*(args: string) =
   var s = @[cstring(gProjectName)] & map(split(args), proc(x: string): cstring = cstring(x))
-  var err = tinyc.run(gTinyC, cint(len(s)), cast[cstringArray](addr(s[0]))) != 0'i32
+  var err = tinyc.run(gTinyC, cint(s.len), cast[cstringArray](addr(s[0]))) != 0'i32
   closeCCState(gTinyC)
   if err: rawMessage(errExecutionOfProgramFailed, "")