diff options
author | practicalswift <practicalswift@users.noreply.github.com> | 2018-10-29 09:15:11 +0100 |
---|---|---|
committer | practicalswift <practicalswift@users.noreply.github.com> | 2018-11-06 17:32:13 +0100 |
commit | c5fd143edb85d0c181e21a429f9e29d12a611831 (patch) | |
tree | ff7260b262bf078cb026f0560ee8643ef8d1879e /src | |
parent | e70cc8983c570bbacee37a67df86b1bf959894df (diff) | |
download | bitcoin-c5fd143edb85d0c181e21a429f9e29d12a611831.tar.xz |
Use ToLower(...) instead of std::tolower
Diffstat (limited to 'src')
-rw-r--r-- | src/uint256.cpp | 2 | ||||
-rw-r--r-- | src/util/system.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/uint256.cpp b/src/uint256.cpp index d9da668036..b723f9ee54 100644 --- a/src/uint256.cpp +++ b/src/uint256.cpp @@ -33,7 +33,7 @@ void base_blob<BITS>::SetHex(const char* psz) psz++; // skip 0x - if (psz[0] == '0' && tolower(psz[1]) == 'x') + if (psz[0] == '0' && ToLower((unsigned char)psz[1]) == 'x') psz += 2; // hex string to uint diff --git a/src/util/system.cpp b/src/util/system.cpp index 4f5dd2d6e9..633b616dc3 100644 --- a/src/util/system.cpp +++ b/src/util/system.cpp @@ -422,7 +422,7 @@ bool ArgsManager::ParseParameters(int argc, const char* const argv[], std::strin key.erase(is_index); } #ifdef WIN32 - std::transform(key.begin(), key.end(), key.begin(), ::tolower); + std::transform(key.begin(), key.end(), key.begin(), ToLower); if (key[0] == '/') key[0] = '-'; #endif |