mirror of
https://git.mirrors.martin98.com/https://github.com/gulrak/filesystem
synced 2025-07-23 03:24:26 +08:00
Merge pull request #108 from philbucher/patch-1
using static_cast instead of old style cast
This commit is contained in:
commit
b8cff0c99c
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user