ICU-4497 fix compiler warning

X-SVN-Rev: 17845
This commit is contained in:
Markus Scherer 2005-06-09 17:39:21 +00:00
parent fb164eba5a
commit 0a7413ccd9

View file

@ -77,7 +77,7 @@ uprops_swap(const UDataSwapper *ds,
}
/* the properties file must contain at least the indexes array */
if(length>=0 && (length-headerSize)<sizeof(dataIndexes)) {
if(length>=0 && (length-headerSize)<(int32_t)sizeof(dataIndexes)) {
udata_printError(ds, "uprops_swap(): too few bytes (%d after header) for a Unicode properties file\n",
length-headerSize);
*pErrorCode=U_INDEX_OUTOFBOUNDS_ERROR;