From e703afdb3bcdf251be8d2f930a2bb3450f192809 Mon Sep 17 00:00:00 2001 From: Araq Date: Mon, 24 Aug 2015 17:11:00 +0200 Subject: [PATCH] fixes sysio regression for nimscript support --- lib/system/sysio.nim | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/system/sysio.nim b/lib/system/sysio.nim index 58ad8ace0f..f51354da89 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: