mirror of
https://github.com/reactos/CMake.git
synced 2024-11-28 22:10:32 +00:00
ENH: remove warning and unneeded cast
This commit is contained in:
parent
0bdfbc72a8
commit
3935711e01
@ -970,17 +970,15 @@ unsigned long SystemTools::FileLength(const char* filename)
|
||||
|
||||
int SystemTools::Strucmp(const char *s1, const char *s2)
|
||||
{
|
||||
// return strcasecmp(s1,s2);
|
||||
//
|
||||
// lifted from Graphvis http://www.graphviz.org
|
||||
while ((*s1 != '\0')
|
||||
&& (tolower(*(unsigned char *)s1) == tolower(*(unsigned char *)s2)))
|
||||
&& (tolower(*s1) == tolower(*s2)))
|
||||
{
|
||||
s1++;
|
||||
s2++;
|
||||
}
|
||||
|
||||
return tolower(*(unsigned char *) s1) - tolower(*(unsigned char *) s2);
|
||||
return tolower(*s1) - tolower(*s2);
|
||||
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user