mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-08 06:53:45 +00:00
ICU-535 fixed some compiler warnings
X-SVN-Rev: 2205
This commit is contained in:
parent
f3144ab272
commit
a8f7718d40
3 changed files with 5 additions and 5 deletions
|
@ -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 {
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue