aboutsummaryrefslogtreecommitdiff
path: root/src/util.cpp
diff options
context:
space:
mode:
authorWladimir J. van der Laan <laanwj@gmail.com>2012-09-09 14:52:07 +0200
committerWladimir J. van der Laan <laanwj@gmail.com>2012-09-10 04:24:57 +0200
commitac4e7f6269429b27f32d290df7e0572814e60068 (patch)
tree0ca4752c88b1f74ac4c1a9f3f65d4dae41600a6a /src/util.cpp
parent963af6449f3fbbb3f9fd79547a33e4f3d5e3f0d0 (diff)
downloadbitcoin-ac4e7f6269429b27f32d290df7e0572814e60068.tar.xz
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.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/util.cpp b/src/util.cpp
index 3a5770c91c..a8bd8228e5 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,