From 91dd8c77ae849c22a8e4c9275e3f728b474b5be5 Mon Sep 17 00:00:00 2001 From: Bo Xu Date: Tue, 2 Dec 2014 16:34:20 -0800 Subject: Modify big integer library This patch follows https://pdfium.googlesource.com/pdfium/+/44047c3300d07192a67b1714084cc2d43b1e9bd9 Modify the library to resolve compile error, add copyright notice and change pdfium.gyp and BUILD.gn R=tsepez@chromium.org Review URL: https://codereview.chromium.org/754743003 --- third_party/bigint/BigIntegerUtils.cc | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'third_party/bigint/BigIntegerUtils.cc') diff --git a/third_party/bigint/BigIntegerUtils.cc b/third_party/bigint/BigIntegerUtils.cc index 44073af652..fac8ac34b1 100644 --- a/third_party/bigint/BigIntegerUtils.cc +++ b/third_party/bigint/BigIntegerUtils.cc @@ -1,3 +1,9 @@ +// Copyright 2014 PDFium Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +// Original code by Matt McCutchen, see the LICENSE file. + #include "BigIntegerUtils.hh" #include "BigUnsignedInABase.hh" @@ -36,7 +42,11 @@ std::ostream &operator <<(std::ostream &os, const BigUnsigned &x) { if (osFlags & os.showbase) os << '0'; } else +#ifdef FOXIT_CHROME_BUILD + abort(); +#else throw "std::ostream << BigUnsigned: Could not determine the desired base from output-stream flags"; +#endif std::string s = std::string(BigUnsignedInABase(x, base)); os << s; return os; -- cgit v1.2.3