Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix off-by-one error in callframe(N)

Bailador now runs unmodified
  • Loading branch information...
commit 8a3124b6bf6cdc68d5945bd214e74f07c7d3c6f4 1 parent ff557f5
@sorear sorear authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/CORE.setting
View
2  lib/CORE.setting
@@ -1428,7 +1428,7 @@ my class CallFrame {
sub caller() { Q:CgOp { (frame_caller (frame_caller (callframe))) } }
sub callframe(Int $level is copy = 0) {
my $frame := Q:CgOp { (frame_caller (callframe)) };
- $frame := $frame.caller while --$level;
+ $frame := $frame.caller while $level--;
$frame;
}
Please sign in to comment.
Something went wrong with that request. Please try again.