diff options
| author | Wladimir J. van der Laan <[email protected]> | 2012-04-15 12:22:30 +0200 |
|---|---|---|
| committer | Wladimir J. van der Laan <[email protected]> | 2012-04-15 13:40:14 +0200 |
| commit | 8add7822cef7d39cb761f59e6b837159a4968982 (patch) | |
| tree | 4553d1c473be24d8c4bdc5c3031799f181091bb2 /src/uint256.h | |
| parent | work around issue in boost::program_options that prevents from compiling in c... (diff) | |
| download | discoin-8add7822cef7d39cb761f59e6b837159a4968982.tar.xz discoin-8add7822cef7d39cb761f59e6b837159a4968982.zip | |
fix warnings: array subscript is of type 'char' [-Wchar-subscripts]
Diffstat (limited to 'src/uint256.h')
| -rw-r--r-- | src/uint256.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/uint256.h b/src/uint256.h index cfc2eb128..094781678 100644 --- a/src/uint256.h +++ b/src/uint256.h @@ -308,7 +308,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; |