From 560eb13f18fa4802c9243a0a7c680d09d6b50e3f Mon Sep 17 00:00:00 2001 From: George Rhoten Date: Tue, 2 Dec 2003 01:57:20 +0000 Subject: [PATCH] ICU-3222 Fix some compiler warnings X-SVN-Rev: 13931 --- icu4c/source/common/locid.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/icu4c/source/common/locid.cpp b/icu4c/source/common/locid.cpp index db480e27c7a..41523af3861 100644 --- a/icu4c/source/common/locid.cpp +++ b/icu4c/source/common/locid.cpp @@ -497,7 +497,7 @@ Locale& Locale::init(const char* localeID) // "canonicalize" the locale ID to ICU/Java format err = U_ZERO_ERROR; length = uloc_getName(localeID, fullName, sizeof(fullNameBuffer), &err); - if(err == U_BUFFER_OVERFLOW_ERROR || length >= sizeof(fullNameBuffer)) { + if(err == U_BUFFER_OVERFLOW_ERROR || length >= (int32_t)sizeof(fullNameBuffer)) { /*Go to heap for the fullName if necessary*/ fullName = (char *)uprv_malloc(sizeof(char)*(length + 1)); if(fullName == 0) {