Merge pull request #4437

de79aaa Move non-trivial uint256.h methods to uint256.cpp (Pieter Wuille)
This commit is contained in:
Wladimir J. van der Laan 2014-06-30 11:26:55 +02:00
commit ac26571d2b
No known key found for this signature in database
GPG key ID: 74810B012346C9A6
5 changed files with 316 additions and 245 deletions

View file

@ -420,6 +420,11 @@ const signed char p_util_hexdigit[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, };
signed char HexDigit(char c)
{
return p_util_hexdigit[(unsigned char)c];
}
bool IsHex(const string& str)
{
BOOST_FOREACH(char c, str)