parent
5651a2f711
commit
15ff89cec1
2 changed files with 16 additions and 2 deletions
|
|
@ -396,7 +396,7 @@ macro scanf*(input: string; pattern: static[string]; results: varargs[typed]): b
|
|||
var resLen = genSym(nskLet, "resLen")
|
||||
conds.add newLetStmt(resLen, newCall(bindSym"parseUntil", inp,
|
||||
results[i], newLit(token), idx))
|
||||
conds.add newCall(bindSym"!=", resLen, newLit min)
|
||||
conds.add newCall(bindSym">=", resLen, newLit min)
|
||||
conds.add resLen
|
||||
else:
|
||||
matchError
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue