From 88e117ada6716eecfac0352d8fe89395789dece5 Mon Sep 17 00:00:00 2001 From: jl777 Date: Thu, 23 Mar 2017 20:09:07 +0200 Subject: [PATCH] Test --- src/arith_uint256.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/arith_uint256.cpp b/src/arith_uint256.cpp index 2e6136357..be1a44bba 100644 --- a/src/arith_uint256.cpp +++ b/src/arith_uint256.cpp @@ -109,6 +109,11 @@ 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 ) + { + fprintf(stderr,"CompareTo null %p or %p\n",pn,b.pn); + return(0); + } for (int i = WIDTH - 1; i >= 0; i--) { if (pn[i] < b.pn[i]) return -1;