aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/uint256.cpp2
-rw-r--r--src/util/system.cpp2
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