From cf4d321504ef218f297a0d9ba7a5d42fee04ffc2 Mon Sep 17 00:00:00 2001 From: "James C. Owens" Date: Sat, 7 Aug 2021 11:58:41 -0400 Subject: [PATCH] Change isxdigit to HexDigit in bignum.h --- src/bignum.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/bignum.h b/src/bignum.h index 2411e770e3..a9db661a68 100644 --- a/src/bignum.h +++ b/src/bignum.h @@ -369,12 +369,11 @@ class CBigNum : public CBigNumBase psz++; // hex string to bignum - static const signed 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 }; *this = 0; - while (isxdigit(*psz)) + while (::HexDigit(*psz) >= 0) { *this <<= 4; - int n = phexdigit[(unsigned char)*psz++]; + int n = ::HexDigit((unsigned char)*psz++); *this += n; } if (fNegative)