Skip to content

Commit b8cff0c

Browse files
authored
Merge pull request #108 from philbucher/patch-1
using static_cast instead of old style cast
2 parents 399941f + 67e708c commit b8cff0c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/ghc/filesystem.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1797,7 +1797,7 @@ GHC_INLINE bool equals_simple_insensitive(const path::value_type* str1, const pa
17971797

17981798
GHC_INLINE int compare_simple_insensitive(const path::value_type* str1, size_t len1, const path::value_type* str2, size_t len2)
17991799
{
1800-
while (len1 > 0 && len2 > 0 && ::tolower((unsigned char)*str1) == ::tolower((unsigned char)*str2)) {
1800+
while (len1 > 0 && len2 > 0 && ::tolower(static_cast<unsigned char>(*str1)) == ::tolower(static_cast<unsigned char>(*str2))) {
18011801
--len1;
18021802
--len2;
18031803
++str1;

0 commit comments

Comments
 (0)