From 85541b4aebff341a9231ccfb5e7c40f787b4c65a Mon Sep 17 00:00:00 2001 From: George Rhoten Date: Tue, 2 Dec 2003 01:25:21 +0000 Subject: [PATCH] ICU-3222 Fix some compiler warnings. X-SVN-Rev: 13926 --- icu4c/source/i18n/regexcmp.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/icu4c/source/i18n/regexcmp.cpp b/icu4c/source/i18n/regexcmp.cpp index f0a803a897..18801b5521 100644 --- a/icu4c/source/i18n/regexcmp.cpp +++ b/icu4c/source/i18n/regexcmp.cpp @@ -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); }