commit | 620d9aeed7100e3d3bc761cc286cadac29787a44 | [log] [tgz] |
---|---|---|
author | Andrew Weintraub <asweintraub@google.com> | Mon Jul 01 18:20:12 2019 +0000 |
committer | Chromium commit bot <commit-bot@chromium.org> | Mon Jul 01 18:20:12 2019 +0000 |
tree | 9a1a97a77eb3b18a27e1dc80fabf6c3205a75b4f | |
parent | 2b04768b92e540bf28cd9e120be87fb60d3f91cc [diff] |
Fix return value of operator= in BigUnsignedInABase. PiperOrigin-RevId: 255794761 Change-Id: I915a361d787bad038a2ddb9955aeaae75c2a929e Reviewed-on: https://pdfium-review.googlesource.com/c/pdfium/+/56990 Commit-Queue: Lei Zhang <thestig@chromium.org> Reviewed-by: Lei Zhang <thestig@chromium.org>
diff --git a/third_party/bigint/BigUnsignedInABase.hh b/third_party/bigint/BigUnsignedInABase.hh index dbd2cf9..fb293ba 100644 --- a/third_party/bigint/BigUnsignedInABase.hh +++ b/third_party/bigint/BigUnsignedInABase.hh
@@ -64,9 +64,10 @@ BigUnsignedInABase(const BigUnsignedInABase &x) : NumberlikeArray<Digit>(x), base(x.base) {} // Assignment operator - void operator =(const BigUnsignedInABase &x) { + BigUnsignedInABase& operator =(const BigUnsignedInABase &x) { NumberlikeArray<Digit>::operator =(x); base = x.base; + return *this; } // Constructor that copies from a given array of digits.