Skip to content

Commit

Permalink
[jvm] Fix 1 ** NaN
Browse files Browse the repository at this point in the history
Makes recently added test (commit 4cca702) in t/nqp/059-nqpop.t pass.
  • Loading branch information
usev6 committed Oct 3, 2017
1 parent a6a1aa0 commit 39666cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/vm/jvm/runtime/org/perl6/nqp/runtime/Ops.java
Original file line number Diff line number Diff line change
Expand Up @@ -6803,7 +6803,7 @@ public static long pow_i(long a, long b) {
}

public static double pow_n(double a, double b) {
if (a == 1 && !Double.isNaN(b)) {
if (a == 1) {
return 1.0;
}
return Math.pow(a, b);
Expand Down

0 comments on commit 39666cb

Please sign in to comment.