git://git.novaco.in
/
novacoin.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
Use CBigNum for temporary variables to prevent overflow. Which is unlikely to happen...
[novacoin.git]
/
src
/
bignum.h
diff --git
a/src/bignum.h
b/src/bignum.h
index
4bda99d
..
441c960
100644
(file)
--- a/
src/bignum.h
+++ b/
src/bignum.h
@@
-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);