Use CBigNum for temporary variables to prevent overflow. Which is unlikely to happen...
[novacoin.git] / src / bignum.h
index 4bda99d..441c960 100644 (file)
@@ -191,6 +191,11 @@ public:
         BN_mpi2bn(pch, (int)(p - pch), this);
     }
 
+    int64_t getint64()
+    {
+        return (int64_t) getuint64();
+    }
+
     uint64_t getuint64()
     {
         size_t nSize = BN_bn2mpi(this, NULL);