* fix warnings in mail

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38271 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Oliver Tappe 2010-08-19 16:47:10 +00:00
parent 6ff66b0bc0
commit b401b82842
2 changed files with 103 additions and 104 deletions

View File

@ -421,9 +421,8 @@ WIndex::NormalizeWord(const char *word, char *dest)
*dst = 0;
// convert to lower-case
dst = dest;
while (*dst)
*dst++ = tolower(*dst);
for (dst = dest; *dst; dst++)
*dst = tolower(*dst);
return dest;
}

View File

@ -498,7 +498,7 @@ word_match(const char* reference, const char* test)
s2++;
}
// Equivalent Character
else if (vsvfn[c1] == vsvfn[c2])
else if (vsvfn[(unsigned)c1] == vsvfn[(unsigned)c2])
x++;
// Unrelated Character
else