diff options
author | Araq <rumpf_a@web.de> | 2011-11-26 17:48:42 +0100 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2011-11-26 17:48:42 +0100 |
commit | 8e1313d237cfbfff4aff751554c7c09ad1bf34c9 (patch) | |
tree | 2a44dcb870f840e81df51b035984ba133d8e425b /lib/system/sysio.nim | |
parent | 840979b45caea47c97c3eaac145841464ab5e5b1 (diff) | |
download | Nim-8e1313d237cfbfff4aff751554c7c09ad1bf34c9.tar.gz |
bugfix: tester compiles again
Diffstat (limited to 'lib/system/sysio.nim')
-rwxr-xr-x | lib/system/sysio.nim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/system/sysio.nim b/lib/system/sysio.nim index adf9256fe..890f526ea 100755 --- a/lib/system/sysio.nim +++ b/lib/system/sysio.nim @@ -42,7 +42,7 @@ proc raiseEIO(msg: string) {.noinline, noreturn.} = proc readLine(f: TFile, line: var TaintedString): bool = # of course this could be optimized a bit; but IO is slow anyway... # and it was difficult to get this CORRECT with Ansi C's methods - setLen(line, 0) # reuse the buffer! + setLen(line.string, 0) # reuse the buffer! while True: var c = fgetc(f) if c < 0'i32: |