Skip to content

Commit e7d52e2

Browse files
committedJun 16, 2022
8288594: Address possibly lossy conversions in java.base FloatToDecimal
Reviewed-by: rriggs
1 parent 2cf7c01 commit e7d52e2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/java.base/share/classes/jdk/internal/math/FloatToDecimal.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -356,7 +356,7 @@ private int toChars(int f, int e) {
356356
* 10^(H-1) <= f < 10^H
357357
* fp 10^ep = f 10^(e-H) = 0.f 10^e
358358
*/
359-
f *= pow10(H - len);
359+
f *= (int)pow10(H - len);
360360
e += len;
361361

362362
/*

0 commit comments

Comments
 (0)