From 47eb3d442d384ad0356b2a185011a9fde9dce16c Mon Sep 17 00:00:00 2001 From: JoelKatz Date: Wed, 30 May 2012 14:23:09 -0700 Subject: [PATCH] Assert on a bad construction. --- src/uint256.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/uint256.h b/src/uint256.h index 6c19c5868a..e18f080864 100644 --- a/src/uint256.h +++ b/src/uint256.h @@ -11,6 +11,7 @@ #include #include #include +#include #include "types.h" @@ -653,7 +654,10 @@ public: if (vch.size() == sizeof(pn)) memcpy(pn, &vch[0], sizeof(pn)); else + { + assert(false); *this = 0; + } } base_uint160 to160() const;