aboutsummaryrefslogtreecommitdiff
path: root/bigint.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'bigint.cpp')
-rw-r--r--bigint.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/bigint.cpp b/bigint.cpp
index 8cd06ab..c25a2c1 100644
--- a/bigint.cpp
+++ b/bigint.cpp
@@ -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);