mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-08 06:53:45 +00:00
ICU-3222 Fix some compiler warnings.
X-SVN-Rev: 13926
This commit is contained in:
parent
992ee7ca58
commit
85541b4aeb
1 changed files with 2 additions and 3 deletions
|
@ -1677,8 +1677,7 @@ int32_t RegexCompile::blockTopLoc(UBool reserveLoc) {
|
|||
// The item just processed is a parenthesized block.
|
||||
theLoc = fMatchOpenParen; // A slot is already reserved for us.
|
||||
U_ASSERT(theLoc > 0);
|
||||
uint32_t opAtTheLoc = fRXPat->fCompiledPat->elementAti(theLoc);
|
||||
U_ASSERT(URX_TYPE(opAtTheLoc) == URX_NOP);
|
||||
U_ASSERT(URX_TYPE(((uint32_t)fRXPat->fCompiledPat->elementAti(theLoc))) == URX_NOP);
|
||||
}
|
||||
else {
|
||||
// Item just compiled is a single thing, a ".", or a single char, or a set reference.
|
||||
|
@ -1687,7 +1686,7 @@ int32_t RegexCompile::blockTopLoc(UBool reserveLoc) {
|
|||
fixLiterals(TRUE); // If last item was a string, separate the last char.
|
||||
theLoc = fRXPat->fCompiledPat->size()-1;
|
||||
if (reserveLoc) {
|
||||
int32_t opAtTheLoc = fRXPat->fCompiledPat->elementAti(theLoc);
|
||||
/*int32_t opAtTheLoc = fRXPat->fCompiledPat->elementAti(theLoc);*/
|
||||
int32_t nop = URX_BUILD(URX_NOP, 0);
|
||||
fRXPat->fCompiledPat->insertElementAt(nop, theLoc, *fStatus);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue