fixes sysio regression for nimscript support
This commit is contained in:
parent
9b0ac8afa8
commit
e703afdb3b
1 changed files with 4 additions and 1 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue