Permalink
Browse files

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

Bailador now runs unmodified
  • Loading branch information...
sorear committed Aug 23, 2012
1 parent ff557f5 commit 8a3124b6bf6cdc68d5945bd214e74f07c7d3c6f4
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/CORE.setting
View
@@ -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;
}

0 comments on commit 8a3124b

Please sign in to comment.