diff options
| author | Wladimir J. van der Laan <[email protected]> | 2012-09-09 14:52:07 +0200 |
|---|---|---|
| committer | Wladimir J. van der Laan <[email protected]> | 2012-09-10 04:24:57 +0200 |
| commit | ac4e7f6269429b27f32d290df7e0572814e60068 (patch) | |
| tree | 0ca4752c88b1f74ac4c1a9f3f65d4dae41600a6a /src/util.cpp | |
| parent | Cleanup some unused macros from util.h (diff) | |
| download | discoin-ac4e7f6269429b27f32d290df7e0572814e60068.tar.xz discoin-ac4e7f6269429b27f32d290df7e0572814e60068.zip | |
HexStr: don't build a vector<char> first
Also const correctness for lookup tables in hex functions throughout the code.
Diffstat (limited to 'src/util.cpp')
| -rw-r--r-- | src/util.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/util.cpp b/src/util.cpp index 3a5770c91..a8bd8228e 100644 --- a/src/util.cpp +++ b/src/util.cpp @@ -424,7 +424,7 @@ bool ParseMoney(const char* pszIn, int64& nRet) } -static signed char phexdigit[256] = +static const signed char phexdigit[256] = { -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1, -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1, -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1, |