summarylogtreecommitdiffstats
path: root/strict_overflow.patch
diff options
context:
space:
mode:
Diffstat (limited to 'strict_overflow.patch')
-rw-r--r--strict_overflow.patch15
1 files changed, 15 insertions, 0 deletions
diff --git a/strict_overflow.patch b/strict_overflow.patch
new file mode 100644
index 000000000000..b50cce5c5637
--- /dev/null
+++ b/strict_overflow.patch
@@ -0,0 +1,15 @@
+Description: silence strict-overflow error when building with gcc5
+Forwarded: not-yet
+Author: Jérémy Lal <kapoure@melix.org>
+Last-Update: 2015-08-18
+--- a/src/bignum.cc
++++ b/src/bignum.cc
+@@ -105,7 +105,7 @@
+ const int kMaxUint64DecimalDigits = 19;
+ Zero();
+ int length = value.length();
+- int pos = 0;
++ uint pos = 0;
+ // Let's just say that each digit needs 4 bits.
+ while (length >= kMaxUint64DecimalDigits) {
+ uint64_t digits = ReadUInt64(value, pos, kMaxUint64DecimalDigits);