Bump PROTOCOL_VERSION to 60001, thereby enabling BIP31
[novacoin.git] / src / bignum.h
index 95e2197..daf5f68 100644 (file)
@@ -301,7 +301,7 @@ public:
         while (isxdigit(*psz))
         {
             *this <<= 4;
-            int n = phexdigit[*psz++];
+            int n = phexdigit[(unsigned char)*psz++];
             *this += n;
         }
         if (fNegative)