ICU-3905 Fix some compiler warnings
X-SVN-Rev: 16774
This commit is contained in:
parent
e4049ea549
commit
f3a2162e65
@ -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 {
|
||||
|
@ -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",
|
||||
|
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user