summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Source/cmDependsFortranParser.cxx4
-rw-r--r--Source/cmDependsFortranParser.y4
2 files changed, 4 insertions, 4 deletions
diff --git a/Source/cmDependsFortranParser.cxx b/Source/cmDependsFortranParser.cxx
index 5bc222e..6bc90d6 100644
--- a/Source/cmDependsFortranParser.cxx
+++ b/Source/cmDependsFortranParser.cxx
@@ -242,8 +242,8 @@ static char charmap[] = {
inline int strcasecmpCM(const char *s1, const char *s2)
{
const char *cm = charmap;
- const char* us1 = s1;
- const char* us2 = s2;
+ unsigned char const* us1 = reinterpret_cast<unsigned char const*>(s1);
+ unsigned char const* us2 = reinterpret_cast<unsigned char const*>(s2);
while(cm[*us1] == cm[*us2++])
if(*us1++ == '\0')
diff --git a/Source/cmDependsFortranParser.y b/Source/cmDependsFortranParser.y
index 7a8d3d9..9aa9445 100644
--- a/Source/cmDependsFortranParser.y
+++ b/Source/cmDependsFortranParser.y
@@ -101,8 +101,8 @@ static char charmap[] = {
inline int strcasecmpCM(const char *s1, const char *s2)
{
const char *cm = charmap;
- const char* us1 = s1;
- const char* us2 = s2;
+ unsigned char const* us1 = reinterpret_cast<unsigned char const*>(s1);
+ unsigned char const* us2 = reinterpret_cast<unsigned char const*>(s2);
while(cm[*us1] == cm[*us2++])
if(*us1++ == '\0')