Merge pull request #108 from philbucher/patch-1

using static_cast instead of old style cast
This commit is contained in:
gulrak 2021-03-19 19:53:31 +01:00 committed by GitHub
commit b8cff0c99c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1797,7 +1797,7 @@ GHC_INLINE bool equals_simple_insensitive(const path::value_type* str1, const pa
GHC_INLINE int compare_simple_insensitive(const path::value_type* str1, size_t len1, const path::value_type* str2, size_t len2)
{
while (len1 > 0 && len2 > 0 && ::tolower((unsigned char)*str1) == ::tolower((unsigned char)*str2)) {
while (len1 > 0 && len2 > 0 && ::tolower(static_cast<unsigned char>(*str1)) == ::tolower(static_cast<unsigned char>(*str2))) {
--len1;
--len2;
++str1;