Skip to content

Commit

Permalink
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -610,7 +610,7 @@ public abstract static class NextFloatNode extends CoreMethodArrayArgumentsNode

@Specialization
public double nextFloat(double value) {
return Math.nextAfter(value, Double.POSITIVE_INFINITY);
return Math.nextUp(value);
}

}
@@ -620,7 +620,7 @@ public abstract static class PrevFloatNode extends CoreMethodArrayArgumentsNode

@Specialization
public double prevFloat(double value) {
return Math.nextAfter(value, Double.NEGATIVE_INFINITY);
return Math.nextDown(value);
}

}

0 comments on commit b93ebce

Please sign in to comment.