aboutsummaryrefslogtreecommitdiff
path: root/graphics/tclblt/patches/blthash.patch
diff options
context:
space:
mode:
authorAndrey M. Lipaev <heliumflash@mail.ru>2019-06-29 07:59:18 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2019-06-29 07:59:18 +0700
commit377171575bcf191c26a95869e11ff1d4af2d0900 (patch)
treee14f774ddd60bf1245b259775ee13aae1955ee4e /graphics/tclblt/patches/blthash.patch
parent96762179b68beac5a71a6657db96796a585d3c34 (diff)
graphics/tclblt: Added (Tcl/Tk Extension).
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'graphics/tclblt/patches/blthash.patch')
-rw-r--r--graphics/tclblt/patches/blthash.patch16
1 files changed, 16 insertions, 0 deletions
diff --git a/graphics/tclblt/patches/blthash.patch b/graphics/tclblt/patches/blthash.patch
new file mode 100644
index 0000000000..df4c97f9d6
--- /dev/null
+++ b/graphics/tclblt/patches/blthash.patch
@@ -0,0 +1,16 @@
+Description: Patch silences GCC warnings for overflow on implicit constant
+ conversions.
+Author: FreeBSD BLT maintainers
+Last-Modified: Tue, 08 Jul 2014 12:19:13 +0400
+
+--- a/generic/bltHash.h.in
++++ b/generic/bltHash.h.in
+@@ -88,7 +88,7 @@
+ * Acceptable key types for hash tables:
+ */
+ #define BLT_STRING_KEYS 0
+-#define BLT_ONE_WORD_KEYS ((size_t)-1)
++#define BLT_ONE_WORD_KEYS -1
+
+ /*
+ * Forward declaration of Blt_HashTable. Needed by some C++ compilers