Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix CALLER/inlining interaction and two new test files
  • Loading branch information
sorear committed Aug 2, 2011
1 parent 48d6cd3 commit f2fccf7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/Kernel.cs
Expand Up @@ -2544,6 +2544,8 @@ public struct StashCursor {
if (f == null)
throw new NieczaException("No more calling frames");
r.p1 = f;
r.p2 = f.info.FindControlEnt(f.ip, SubInfo.ON_VARLOOKUP, null);
if (r.p2 < 0) r.p2 = 0;
}
return r;
}
Expand All @@ -2558,8 +2560,7 @@ public struct StashCursor {
r.p1 = f;
if (f == null)
throw new NieczaException("No more outer frames");
r.p2 = f.info.FindControlEnt(f.ip, SubInfo.ON_VARLOOKUP, null);
if (r.p2 < 0) r.p2 = 0;
r.p2 = 0;
}
return r;
}
Expand Down
2 changes: 2 additions & 0 deletions t/spectest.data
Expand Up @@ -22,7 +22,9 @@ S02-magicals/block.t
S02-magicals/file_line.t
S02-magicals/sub.t
S02-names_and_variables/contextual.t
S02-names/caller.t
S02-names/identifier.t
S02-names/our.t
S02-names/symbolic-deref.t
S02-whitespace_and_comments/begin_end_pod.t
S02-whitespace_and_comments/pod-in-multi-line-exprs.t
Expand Down

0 comments on commit f2fccf7

Please sign in to comment.