From 8bcdfa544dc8a6d20f8366055eb1f0cac067fe24 Mon Sep 17 00:00:00 2001 From: George Rhoten Date: Thu, 16 Aug 2012 04:56:59 +0000 Subject: [PATCH] ICU-9457 Fix some compiler warnings. X-SVN-Rev: 32180 --- icu4c/source/common/utf_impl.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/icu4c/source/common/utf_impl.c b/icu4c/source/common/utf_impl.c index 7ff990b18a5..67d3a15cf8a 100644 --- a/icu4c/source/common/utf_impl.c +++ b/icu4c/source/common/utf_impl.c @@ -1,7 +1,7 @@ /* ****************************************************************************** * -* Copyright (C) 1999-2011, International Business Machines +* Copyright (C) 1999-2012, International Business Machines * Corporation and others. All Rights Reserved. * ****************************************************************************** @@ -112,7 +112,7 @@ U_CAPI UChar32 U_EXPORT2 utf8_nextCharSafeBody(const uint8_t *s, int32_t *pi, int32_t length, UChar32 c, UBool strict) { int32_t i=*pi; uint8_t count=U8_COUNT_TRAIL_BYTES(c); - U_ASSERT(count >= 0 && count <= 5); /* U8_COUNT_TRAIL_BYTES returns value 0...5 */ + U_ASSERT(count <= 5); /* U8_COUNT_TRAIL_BYTES returns value 0...5 */ if((i)+count<=(length)) { uint8_t trail, illegal=0; -- 2.40.0