From 739c71fac0113d8cd91a8c84afc67891e781cfe1 Mon Sep 17 00:00:00 2001 From: Matitiahu Allouche Date: Fri, 10 Aug 2007 10:10:58 +0000 Subject: [PATCH] ICU-5732 fix some compiler warnings X-SVN-Rev: 22338 --- icu4c/source/common/ubidi.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/icu4c/source/common/ubidi.c b/icu4c/source/common/ubidi.c index a98832e181f..83abc84e436 100644 --- a/icu4c/source/common/ubidi.c +++ b/icu4c/source/common/ubidi.c @@ -1741,10 +1741,8 @@ ubidi_setPara(UBiDi *pBiDi, const UChar *text, int32_t length, /* check the argument values */ RETURN_IF_NULL_OR_FAILING_ERRCODE(pErrorCode, ); - if(!IS_DEFAULT_LEVEL(paraLevel)) { - RETURN_IF_BAD_RANGE(paraLevel, 0, UBIDI_MAX_EXPLICIT_LEVEL+1, *pErrorCode, ); - } - if(pBiDi==NULL || text==NULL || length<-1) { + if(pBiDi==NULL || text==NULL || length<-1 || + (paraLevel>UBIDI_MAX_EXPLICIT_LEVEL && paraLevelpImpTabPair=&impTab_INVERSE_FOR_NUMBERS_SPECIAL; } break; - case UBIDI_REORDER_RUNS_ONLY: - case UBIDI_REORDER_COUNT: + default: /* we should never get here */ U_ASSERT(FALSE); break;