mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 14:54:52 +02:00
8286378: Address possibly lossy conversions in java.base
Reviewed-by: naoto, xuelei, bpb, alanb
This commit is contained in:
parent
0a6832b24c
commit
17c52789b7
32 changed files with 68 additions and 71 deletions
|
@ -1532,7 +1532,7 @@ public class DecimalFormat extends NumberFormat {
|
|||
cursor--) {
|
||||
if (digitsCounter != 0) {
|
||||
// This is a digit char, we must localize it.
|
||||
digitsBuffer[cursor] += fastPathData.zeroDelta;
|
||||
digitsBuffer[cursor] += (char)fastPathData.zeroDelta;
|
||||
digitsCounter--;
|
||||
} else {
|
||||
// Decimal separator or grouping char. Reinit counter only.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue