diff options
Diffstat (limited to 'bigint.cpp')
-rw-r--r-- | bigint.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -521,7 +521,7 @@ string Bigint::serialiseMantissa() const { } void Bigint::deserialiseMantissa(const string &s){ - assert(s.size()%sizeof(digit_t)==0); + if(s.size()%sizeof(digit_t)!=0)throw invalid_argument("Not a serialised Bigint"); sign=1; int sz=s.size()/sizeof(digit_t); digits.resize(sz); |