Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix braino. NativeHOW sent bad data to the REPR compose.
  • Loading branch information
arnsholt committed Jan 28, 2013
1 parent f7a5a2f commit c7fe112
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/Perl6/Metamodel/NativeHOW.pm
Expand Up @@ -34,7 +34,11 @@ class Perl6::Metamodel::NativeHOW
self.publish_method_cache($obj);
self.publish_type_cache($obj);
if !$!composed && $!nativesize {
nqp::composetype($obj, hash(bits => $!nativesize));
my $info := nqp::hash();
$info<integer> := nqp::hash();
$info<integer><bits> := nqp::unbox_i($!nativesize);
nqp::composetype($obj, $info);
#nqp::composetype($obj, hash(integer => hash(bits => $!nativesize)));
}
$!composed := 1;
}
Expand Down

0 comments on commit c7fe112

Please sign in to comment.