--- a/src/mmgr.cpp +++ b/src/mmgr.cpp @@ -228,9 +228,9 @@ static const char *sourceFileStripper(const char *sourceFile) { - char *ptr = strrchr(sourceFile, '\\'); + char *ptr = strrchr((char *)sourceFile, '\\'); if (ptr) return ptr + 1; - ptr = strrchr(sourceFile, '/'); + ptr = strrchr((char *)sourceFile, '/'); if (ptr) return ptr + 1; return sourceFile; }