ICU-535 fixed some compiler warnings

X-SVN-Rev: 2205
This commit is contained in:
George Rhoten 2000-08-11 21:24:17 +00:00
parent f3144ab272
commit a8f7718d40
3 changed files with 5 additions and 5 deletions

View file

@ -85,11 +85,11 @@ U_CAPI int32_t U_EXPORT2 uprv_mstrm_read(UMemoryStream *MS, void* addr, int32_t
if(len + MS->fReadPos > MS->fPos) {
len = MS->fPos - MS->fReadPos;
MS->fError = TRUE;
MS->fEof = TRUE;
MS->fEof = TRUE;
}
uprv_memcpy(addr, MS->fStart+MS->fReadPos, len);
MS->fReadPos+=len;
MS->fReadPos+=len;
return len;
} else {

View file

@ -110,8 +110,8 @@ u_strstr(const UChar *s, const UChar *substring) {
/* Only one string iterator needs checking for null terminator */
while ((*strItr != 0) && (*strItr == *subItr)) {
strItr++;
subItr++;
}
subItr++;
}
if (*subItr == 0) { /* Was the end of the substring reached? */
return (UChar *)s;

View file

@ -167,7 +167,7 @@ void* UVector::orphanElementAt(int32_t index) {
for (int32_t i=index; i<count-1; ++i) {
elements[i] = elements[i+1];
}
--count;
--count;
}
/* else index out of range */
return e;