index : packages | |
Archlinux32 package modifications | gitolite user |
summaryrefslogtreecommitdiff |
author | Erich Eckner <git@eckner.net> | 2019-03-27 11:04:21 +0100 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2019-03-27 11:04:21 +0100 |
commit | e69cfef0cf889e8feb4065c7fc0af281be0709cc (patch) | |
tree | 4cd3f67eb19794a6d1c5cb9dedc4f1f4c7fb454d /community/grumpy/ef4791393db1ab586400d326ae7d7993e5610d00.patch | |
parent | d9c952229521795d62718c66b68c4f4b643c991e (diff) |
-rw-r--r-- | community/grumpy/ef4791393db1ab586400d326ae7d7993e5610d00.patch | 26 |
diff --git a/community/grumpy/ef4791393db1ab586400d326ae7d7993e5610d00.patch b/community/grumpy/ef4791393db1ab586400d326ae7d7993e5610d00.patch deleted file mode 100644 index c8894732..00000000 --- a/community/grumpy/ef4791393db1ab586400d326ae7d7993e5610d00.patch +++ /dev/null @@ -1,26 +0,0 @@ -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 { |