Skip to content

Commit

Permalink
Avoid Parrot tail calls bug, thus fixing ambiguous dispatch message c…
Browse files Browse the repository at this point in the history
…ausing NPMCA.
  • Loading branch information
jnthn committed Oct 8, 2009
1 parent 8e2382c commit 1ef2315
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/classes/Code.pir
Expand Up @@ -124,7 +124,8 @@ Gets the signature for the block, or returns Failure if it lacks one.
$P0 = getprop '$!signature', $P0
if null $P0 goto no_sig
$P1 = get_hll_global 'Signature'
.tailcall $P1.'new'('ll_sig' => $P0)
$P1 = $P1.'new'('ll_sig' => $P0)
.return ($P1)
no_sig:
.tailcall '!FAIL'('No signature found')
.end
Expand Down

0 comments on commit 1ef2315

Please sign in to comment.