aboutsummaryrefslogtreecommitdiff
path: root/src/uint256.cpp
diff options
context:
space:
mode:
authorWladimir J. van der Laan <[email protected]>2019-01-10 01:46:32 +0100
committerWladimir J. van der Laan <[email protected]>2019-01-10 02:51:14 +0100
commit332b3dd7c156daa08df347dc3359f0ee99ce4baa (patch)
treebbd9ee1fdcad37089529f7728774150562e2c0e4 /src/uint256.cpp
parentutil: remove unused [U](BEGIN|END) macros (diff)
downloaddiscoin-332b3dd7c156daa08df347dc3359f0ee99ce4baa.tar.xz
discoin-332b3dd7c156daa08df347dc3359f0ee99ce4baa.zip
util: Make ToLower and ToUpper take a char
Unfortunately, `std::string` elements are (bare) chars. As these are the most likely type to be passed to these functions, make them use char instead of unsigned char. This avoids some casts.
Diffstat (limited to 'src/uint256.cpp')
-rw-r--r--src/uint256.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/uint256.cpp b/src/uint256.cpp
index b723f9ee5..e3bc9712e 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((unsigned char)psz[1]) == 'x')
+ if (psz[0] == '0' && ToLower(psz[1]) == 'x')
psz += 2;
// hex string to uint