8286399: Address possibly lossy conversions in JDK Build Tools

Reviewed-by: rriggs, joehw
This commit is contained in:
Naoto Sato 2022-05-16 15:46:11 +00:00
parent b884db8f7c
commit c044cb8346
2 changed files with 5 additions and 5 deletions

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2010, 2013, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2010, 2022, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@ -119,7 +119,7 @@ public class EUC_TW {
indexC2B[e.cp>>8] = 1;
} else {
indexC2BSupp[(e.cp&0xffff)>>8] = 1;
suppFlag[e.bs] |= (1 << plane);
suppFlag[e.bs] |= (byte) (1 << plane);
}
}

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2003, 2020, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2003, 2022, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@ -1273,7 +1273,7 @@ class RuleBasedBreakIteratorBuilder {
for (int i = 0; i < decisionPointList.size(); i++) {
int rowNum = decisionPointList.elementAt(i).intValue();
state = tempStateTable.elementAt(rowNum);
state[numCategories] |= END_STATE_FLAG;
state[numCategories] |= (short) END_STATE_FLAG;
if (sawEarlyBreak) {
state[numCategories] |= LOOKAHEAD_STATE_FLAG;
}
@ -1580,7 +1580,7 @@ class RuleBasedBreakIteratorBuilder {
}
// clear out the backfill part of the flag word
state[numCategories] &= ALL_FLAGS;
state[numCategories] &= (short) ALL_FLAGS;
// then fill all zero cells in the current state with values
// from the corresponding cells of the fromState