Skip to content

Commit

Permalink
Fix to .__dump for native attributes -- jnthn++.
Browse files Browse the repository at this point in the history
  • Loading branch information
pmichaud committed Jul 7, 2011
1 parent 5c9cd12 commit 0108338
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/core/NQPMu.pm
Expand Up @@ -62,13 +62,13 @@ my class NQPMu {
my $name := $_.name;
my $attrtype := $_.type;
print("\n", $subindent, $type.HOW.name($type), "::", $name, " => ");
if $attrtype eq 'int' {
if $attrtype =:= int {
$dumper.'dump'($label, pir::box__Pi(nqp::getattr_i(self, $type, $name)));
}
elsif $attrtype eq 'num' {
elsif $attrtype =:= num {
$dumper.'dump'($label, pir::box__Pn(nqp::getattr_n(self, $type, $name)));
}
elsif $attrtype eq 'str' {
elsif $attrtype =:= str {
$dumper.'dump'($label, pir::box__Ps(nqp::getattr_s(self, $type, $name)));
}
else {
Expand Down

0 comments on commit 0108338

Please sign in to comment.