From e4f53bd20a5b8231e8d0cce2075759df50cc8822 Mon Sep 17 00:00:00 2001 From: jl777 Date: Thu, 23 Mar 2017 20:23:25 +0200 Subject: [PATCH] Test --- src/arith_uint256.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/arith_uint256.cpp b/src/arith_uint256.cpp index be1a44bba..a1865b649 100644 --- a/src/arith_uint256.cpp +++ b/src/arith_uint256.cpp @@ -109,7 +109,7 @@ base_uint& base_uint::operator/=(const base_uint& b) template int base_uint::CompareTo(const base_uint& b) const { - if ( pn == 0 || b.pn == 0 ) + if ( (uint64_t)pn < 0x1000 || (uint64_t)b.pn <= 0x1000 ) { fprintf(stderr,"CompareTo null %p or %p\n",pn,b.pn); return(0);