diff options
| author | Wladimir J. van der Laan <[email protected]> | 2019-01-10 01:46:32 +0100 |
|---|---|---|
| committer | Wladimir J. van der Laan <[email protected]> | 2019-01-10 02:51:14 +0100 |
| commit | 332b3dd7c156daa08df347dc3359f0ee99ce4baa (patch) | |
| tree | bbd9ee1fdcad37089529f7728774150562e2c0e4 /src/uint256.cpp | |
| parent | util: remove unused [U](BEGIN|END) macros (diff) | |
| download | discoin-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.cpp | 2 |
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 |