Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Return proper type from infix:<**> patch.
moritz++ for spotting this one.
  • Loading branch information
colomon committed Jul 12, 2013
1 parent 0562424 commit 00cd347
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/Num.pm
Expand Up @@ -310,7 +310,7 @@ multi infix:<%>(num $a, num $b) {
multi infix:<**>(Num:D \a, Num:D \b) {
#?if jvm
# Parrot takes care of this for you in pow_n
return 1 if a == 1 && !b.isNaN;
return 1e0 if a == 1 && !b.isNaN;
#?endif
nqp::p6box_n(nqp::pow_n(nqp::unbox_n(a), nqp::unbox_n(b)))
}
Expand Down

0 comments on commit 00cd347

Please sign in to comment.