Skip to content

Commit c5fd143

Browse files
Use ToLower(...) instead of std::tolower
1 parent e70cc89 commit c5fd143

File tree

3 files changed

+2
-4
lines changed

3 files changed

+2
-4
lines changed

src/uint256.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ void base_blob<BITS>::SetHex(const char* psz)
3333
psz++;
3434

3535
// skip 0x
36-
if (psz[0] == '0' && tolower(psz[1]) == 'x')
36+
if (psz[0] == '0' && ToLower((unsigned char)psz[1]) == 'x')
3737
psz += 2;
3838

3939
// hex string to uint

src/util/system.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -422,7 +422,7 @@ bool ArgsManager::ParseParameters(int argc, const char* const argv[], std::strin
422422
key.erase(is_index);
423423
}
424424
#ifdef WIN32
425-
std::transform(key.begin(), key.end(), key.begin(), ::tolower);
425+
std::transform(key.begin(), key.end(), key.begin(), ToLower);
426426
if (key[0] == '/')
427427
key[0] = '-';
428428
#endif

test/lint/lint-locale-dependence.sh

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,8 @@ KNOWN_VIOLATIONS=(
1515
"src/test/getarg_tests.cpp.*split"
1616
"src/torcontrol.cpp:.*atoi"
1717
"src/torcontrol.cpp:.*strtol"
18-
"src/uint256.cpp:.*tolower"
1918
"src/util/system.cpp:.*atoi"
2019
"src/util/system.cpp:.*fprintf"
21-
"src/util/system.cpp:.*tolower"
2220
"src/util/strencodings.cpp:.*atoi"
2321
"src/util/strencodings.cpp:.*strtol"
2422
"src/util/strencodings.cpp:.*strtoul"

0 commit comments

Comments
 (0)