mirror of
https://github.com/nim-lang/Nim.git
synced 2026-04-17 21:12:42 +00:00
attempt to get the stack trace logic right; fix boundaries
This commit is contained in:
@@ -237,10 +237,10 @@ proc mergeEntries(entries: seq[StackTraceEntry]): seq[StackTraceEntry] =
|
||||
|
||||
# either the nested block is new, then we insert it, or we discard it
|
||||
# completely. 'diff' is the wrong idea here.
|
||||
var last = result.len
|
||||
var last = result.len-1
|
||||
var e = reRaiseEnd-1
|
||||
var newBlock = true
|
||||
while last > 0 and e > i+1:
|
||||
while last >= 0 and e >= i+1:
|
||||
if result[last] != entries[e]:
|
||||
newBlock = false
|
||||
break
|
||||
|
||||
Reference in New Issue
Block a user