Deprecated laxStrings for mutating the internal zero terminator on strings and its Deprecated code cleaned out (#14766)
Co-authored-by: Andreas Rumpf <rumpf_a@web.de>
This commit is contained in:
parent
c3459c7b14
commit
28510a9da9
7 changed files with 4 additions and 9 deletions
|
|
@ -684,8 +684,6 @@ proc rawExecute(c: PCtx, start: int, tos: PStackFrame): TFullReg =
|
|||
let s = regs[rb].node.strVal
|
||||
if idx <% s.len:
|
||||
regs[ra].intVal = s[idx].ord
|
||||
elif idx == s.len and optLaxStrings in c.config.options:
|
||||
regs[ra].intVal = 0
|
||||
else:
|
||||
stackTrace(c, tos, pc, formatErrorIndexBound(idx, s.len-1))
|
||||
of opcWrArr:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue