From ca09e63755bb9e6aa68876568a5e5c29f0f63b7a Mon Sep 17 00:00:00 2001 From: George Rhoten Date: Fri, 14 Apr 2006 16:01:20 +0000 Subject: [PATCH] ICU-4707 Fix some compiler warnings. X-SVN-Rev: 19545 --- icu4c/source/common/usprep.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/icu4c/source/common/usprep.cpp b/icu4c/source/common/usprep.cpp index 299f4e054fb..79209a18327 100644 --- a/icu4c/source/common/usprep.cpp +++ b/icu4c/source/common/usprep.cpp @@ -480,8 +480,12 @@ getValues(uint16_t trieWord, int16_t& value, UBool& isIndex){ * the source codepoint is copied to the destination */ type = USPREP_TYPE_LIMIT; + isIndex =FALSE; + value = 0; }else if(trieWord >= _SPREP_TYPE_THRESHOLD){ type = (UStringPrepType) (trieWord - _SPREP_TYPE_THRESHOLD); + isIndex =FALSE; + value = 0; }else{ /* get the type */ type = USPREP_MAP; @@ -489,12 +493,10 @@ getValues(uint16_t trieWord, int16_t& value, UBool& isIndex){ if(trieWord & 0x02){ isIndex = TRUE; value = trieWord >> 2; //mask off the lower 2 bits and shift - }else{ isIndex = FALSE; value = (int16_t)trieWord; value = (value >> 2); - } if((trieWord>>2) == _SPREP_MAX_INDEX_VALUE){