diff options
author | pat-s | 2018-03-04 20:19:56 +0100 |
---|---|---|
committer | pat-s | 2018-03-04 20:19:56 +0100 |
commit | eca02c0286853717fb82b9f3a91b3c3ffbb7d6da (patch) | |
tree | 5149a1e3aedac0eb6c765ed09201f418a7f39eeb /strict_overflow.patch | |
parent | 8fb7d7687be1fdc6908573c8895b0d1ada9d5716 (diff) | |
download | aur-eca02c0286853717fb82b9f3a91b3c3ffbb7d6da.tar.gz |
update sources
Diffstat (limited to 'strict_overflow.patch')
-rw-r--r-- | strict_overflow.patch | 15 |
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); |