Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/community/grumpy/ef4791393db1ab586400d326ae7d7993e5610d00.patch
diff options
context:
space:
mode:
authorAndreas Baumann <mail@andreasbaumann.cc>2018-09-09 07:27:18 +0000
committerAndreas Baumann <mail@andreasbaumann.cc>2018-09-09 07:27:18 +0000
commitbfa2db7ade84ab233e71e793a103c2d13dac8ed3 (patch)
tree78570252c3afb50546b5ea4bba87a9c8869bf5fb /community/grumpy/ef4791393db1ab586400d326ae7d7993e5610d00.patch
parent0e5961e6e0038b2d338c1ecea8db71f1155276ac (diff)
parent43d8fdd33906541c80c7f838a26e0e594a11886a (diff)
Merge branch 'master' into i486
Diffstat (limited to 'community/grumpy/ef4791393db1ab586400d326ae7d7993e5610d00.patch')
-rw-r--r--community/grumpy/ef4791393db1ab586400d326ae7d7993e5610d00.patch26
1 files changed, 26 insertions, 0 deletions
diff --git a/community/grumpy/ef4791393db1ab586400d326ae7d7993e5610d00.patch b/community/grumpy/ef4791393db1ab586400d326ae7d7993e5610d00.patch
new file mode 100644
index 00000000..c8894732
--- /dev/null
+++ b/community/grumpy/ef4791393db1ab586400d326ae7d7993e5610d00.patch
@@ -0,0 +1,26 @@
+From ef4791393db1ab586400d326ae7d7993e5610d00 Mon Sep 17 00:00:00 2001
+From: Alan Justino <alan.justino@yahoo.com.br>
+Date: Wed, 7 Mar 2018 19:00:29 -0300
+Subject: [PATCH] Fix overflow on math.MaxInt64
+
+---
+ tools/pkgc.go | 6 +++++-
+ 1 file changed, 5 insertions(+), 1 deletion(-)
+
+diff --git a/tools/pkgc.go b/tools/pkgc.go
+index 4b08aac5..e04017c7 100644
+--- a/tools/pkgc.go
++++ b/tools/pkgc.go
+@@ -65,7 +65,11 @@ func getConst(name string, v constant.Value) string {
+ case constant.Int:
+ if constant.Sign(v) >= 0 {
+ if i, exact := constant.Uint64Val(v); exact {
+- if i > math.MaxInt64 {
++ if i < math.MaxInt8 {
++ format = "uint(%s)"
++ } else if i < math.MaxInt32 {
++ format = "uint32(%s)"
++ } else {
+ format = "uint64(%s)"
+ }
+ } else {