mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-01-21 15:50:07 +01:00
HexStr: don't build a vector<char> first
Also const correctness for lookup tables in hex functions throughout the code.
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user