mirror of
https://github.com/nim-lang/Nim.git
synced 2026-04-19 14:00:35 +00:00
fixes #4562
This commit is contained in:
@@ -258,7 +258,8 @@ macro scanf*(input: string; pattern: static[string]; results: varargs[typed]): b
|
||||
conds.add resLen
|
||||
result.add conditionsToIfChain(conds, idx, res, 0)
|
||||
if fullMatch:
|
||||
result.add newCall(bindSym">=", idx, newCall(bindSym"len", input))
|
||||
result.add newCall(bindSym"and", res,
|
||||
newCall(bindSym">=", idx, newCall(bindSym"len", input)))
|
||||
else:
|
||||
result.add res
|
||||
|
||||
|
||||
Reference in New Issue
Block a user