diff options
author | Wladimir J. van der Laan <laanwj@gmail.com> | 2012-04-15 12:22:30 +0200 |
---|---|---|
committer | Luke Dashjr <luke-jr+git@utopios.org> | 2012-04-15 19:28:00 -0400 |
commit | f650d62fc66d67e9afb6917de9220b1e0e6759fe (patch) | |
tree | ba7ae8d5e496a985b927fd99d854480edfb4e42d /src | |
parent | 401db6d96b34bbfa8942af1090ce29cafcf79859 (diff) | |
download | bitcoin-f650d62fc66d67e9afb6917de9220b1e0e6759fe.tar.xz |
fix warnings: array subscript is of type 'char' [-Wchar-subscripts]
Diffstat (limited to 'src')
-rw-r--r-- | src/bignum.h | 2 | ||||
-rw-r--r-- | src/uint256.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/bignum.h b/src/bignum.h index 6e8d3cb8ab..641ebf4b05 100644 --- a/src/bignum.h +++ b/src/bignum.h @@ -300,7 +300,7 @@ public: while (isxdigit(*psz)) { *this <<= 4; - int n = phexdigit[*psz++]; + int n = phexdigit[(unsigned char)*psz++]; *this += n; } if (fNegative) diff --git a/src/uint256.h b/src/uint256.h index ae263346a8..07809e49a8 100644 --- a/src/uint256.h +++ b/src/uint256.h @@ -315,7 +315,7 @@ public: // hex string to uint static char phexdigit[256] = { 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,1,2,3,4,5,6,7,8,9,0,0,0,0,0,0, 0,0xa,0xb,0xc,0xd,0xe,0xf,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0xa,0xb,0xc,0xd,0xe,0xf,0,0,0,0,0,0,0,0,0 }; const char* pbegin = psz; - while (phexdigit[*psz] || *psz == '0') + while (phexdigit[(unsigned char)*psz] || *psz == '0') psz++; psz--; unsigned char* p1 = (unsigned char*)pn; |