diff options
author | Araq <rumpf_a@web.de> | 2015-08-24 17:11:00 +0200 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2015-08-24 18:01:40 +0200 |
commit | e703afdb3bcdf251be8d2f930a2bb3450f192809 (patch) | |
tree | 00b974e5b70b3263e69dfa25a19d3296d171e35d | |
parent | 9b0ac8afa88272b03247199844018758fada6958 (diff) | |
download | Nim-e703afdb3bcdf251be8d2f930a2bb3450f192809.tar.gz |
fixes sysio regression for nimscript support
-rw-r--r-- | lib/system/sysio.nim | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/system/sysio.nim b/lib/system/sysio.nim index 58ad8ace0..f51354da8 100644 --- a/lib/system/sysio.nim +++ b/lib/system/sysio.nim @@ -73,7 +73,10 @@ proc raiseEIO(msg: string) {.noinline, noreturn.} = proc readLine(f: File, line: var TaintedString): bool = var pos = 0 # Use the currently reserved space for a first try - var space = cast[PGenericSeq](line.string).space + when defined(nimscript): + var space = 80 + else: + var space = cast[PGenericSeq](line.string).space line.string.setLen(space) while true: |