File: blthash.patch

package info (click to toggle)
blt 2.5.3%2Bdfsg-3
  • links: PTS
  • area: main
  • in suites: stretch
  • size: 24,864 kB
  • sloc: ansic: 133,724; tcl: 17,680; sh: 2,722; makefile: 799; cpp: 370
file content (16 lines) | stat: -rw-r--r-- 467 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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