From 4136d507df3d77038082f9d911c8df541c6c6f08 Mon Sep 17 00:00:00 2001 From: Michael Tautschnig Date: Fri, 26 Feb 2016 10:31:17 +0000 Subject: [PATCH] BigInt::operator= for unsigned long (aka std::size_t) --- src/big-int/bigint.hh | 1 + 1 file changed, 1 insertion(+) diff --git a/src/big-int/bigint.hh b/src/big-int/bigint.hh index a5bd6eaab06..1de3e7d0ad1 100644 --- a/src/big-int/bigint.hh +++ b/src/big-int/bigint.hh @@ -242,6 +242,7 @@ public: BigInt &operator/= (llong_t) _fast; BigInt &operator%= (llong_t) _fast; + BigInt &operator= (unsigned long x) { return (*this)=(ullong_t)x; } BigInt &operator+= (unsigned long x) { return (*this)+=(ullong_t)x; } BigInt &operator-= (unsigned long x) { return (*this)-=(ullong_t)x; } BigInt &operator*= (unsigned long x) { return (*this)*=(ullong_t)x; }