Skip to content

Commit c7b75af

Browse files
author
Daniel Kroening
committed
Merge pull request #4 from tautschnig/bigint-size_t
BigInt::operator= for unsigned long (aka std::size_t)
2 parents 6f4fad0 + 4136d50 commit c7b75af

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/big-int/bigint.hh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -242,6 +242,7 @@ public:
242242
BigInt &operator/= (llong_t) _fast;
243243
BigInt &operator%= (llong_t) _fast;
244244

245+
BigInt &operator= (unsigned long x) { return (*this)=(ullong_t)x; }
245246
BigInt &operator+= (unsigned long x) { return (*this)+=(ullong_t)x; }
246247
BigInt &operator-= (unsigned long x) { return (*this)-=(ullong_t)x; }
247248
BigInt &operator*= (unsigned long x) { return (*this)*=(ullong_t)x; }

0 commit comments

Comments
 (0)