Skip to content

Commit

Permalink
Temporary fix to get .signature to work on ObjectRefs (fixes RT #63744).
Browse files Browse the repository at this point in the history
The correct fix will likely be to have method dispatch
dereference objects prior to dispatch.
  • Loading branch information
pmichaud committed Mar 9, 2009
1 parent 065175b commit d16d3c3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/classes/Code.pir
Expand Up @@ -155,12 +155,12 @@ Gets the signature for the block, or returns Failure if it lacks one.
=cut
.sub 'signature' :method
$P0 = getprop '$!signature', self
$P0 = '!DEREF'(self)
$P0 = getprop '$!signature', $P0
if null $P0 goto no_sig
.return ($P0)
no_sig:
$P0 = get_hll_global 'Failure'
.return ($P0)
.tailcall '!FAIL'('No signature found')
.end
Expand Down

0 comments on commit d16d3c3

Please sign in to comment.