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,6 +73,9 @@ proc raiseEIO(msg: string) {.noinline, noreturn.} =
|
||||||
proc readLine(f: File, line: var TaintedString): bool =
|
proc readLine(f: File, line: var TaintedString): bool =
|
||||||
var pos = 0
|
var pos = 0
|
||||||
# Use the currently reserved space for a first try
|
# Use the currently reserved space for a first try
|
||||||
|
when defined(nimscript):
|
||||||
|
var space = 80
|
||||||
|
else:
|
||||||
var space = cast[PGenericSeq](line.string).space
|
var space = cast[PGenericSeq](line.string).space
|
||||||
line.string.setLen(space)
|
line.string.setLen(space)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue