ICU-3905 Fix some compiler warnings

X-SVN-Rev: 16774
This commit is contained in:
George Rhoten 2004-11-05 18:59:09 +00:00
parent e4049ea549
commit f3a2162e65
3 changed files with 4 additions and 5 deletions

View File

@ -1019,7 +1019,7 @@ uiter_setUTF8(UCharIterator *iter, const char *s, int32_t length) {
if(length>=0) {
iter->limit=length;
} else {
iter->limit=uprv_strlen(s);
iter->limit=(int32_t)uprv_strlen(s);
}
iter->length= iter->limit<=1 ? iter->limit : -1;
} else {

View File

@ -2077,7 +2077,7 @@ uchar_swapNames(const UDataSwapper *ds,
switch(inRange->type) {
case 0:
/* swap prefix string */
ds->swapInvChars(ds, inRange+1, uprv_strlen((const char *)(inRange+1)),
ds->swapInvChars(ds, inRange+1, (int32_t)uprv_strlen((const char *)(inRange+1)),
outRange+1, pErrorCode);
if(U_FAILURE(*pErrorCode)) {
udata_printError(ds, "uchar_swapNames(prefix string of algorithmic range %u) failed - %s\n",

View File

@ -561,12 +561,11 @@ unorm_openIter(void *stackMem, int32_t stackMemSize, UErrorCode *pErrorCode) {
if(align==0) {
/* already aligned */
uni=(UNormIterator *)stackMem;
} else if((stackMemSize-=align)>=sizeof(UNormIterator)) {
} else if((stackMemSize-=(int32_t)align)>=(int32_t)sizeof(UNormIterator)) {
/* needs alignment */
uni=(UNormIterator *)((char *)stackMem+align);
} else {
/* does not fit */
}
/* else does not fit */
}
if(uni!=NULL) {