Skip to content
Snippets Groups Projects
Commit e7034a2a authored by Bill Hoffman's avatar Bill Hoffman
Browse files

ENH: remove warning and unneeded cast

parent 39b3e998
No related branches found
No related tags found
No related merge requests found
......@@ -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);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment