diff options
Diffstat (limited to 'debian/patches/0002-libihash-fix-comparison-between-signed-and-unsigned-.patch')
-rw-r--r-- | debian/patches/0002-libihash-fix-comparison-between-signed-and-unsigned-.patch | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/debian/patches/0002-libihash-fix-comparison-between-signed-and-unsigned-.patch b/debian/patches/0002-libihash-fix-comparison-between-signed-and-unsigned-.patch new file mode 100644 index 00000000..bd4151b4 --- /dev/null +++ b/debian/patches/0002-libihash-fix-comparison-between-signed-and-unsigned-.patch @@ -0,0 +1,29 @@ +From cff1600ab2f43d3ef4c58982c82453f000585b2b Mon Sep 17 00:00:00 2001 +From: Justus Winter <4winter@informatik.uni-hamburg.de> +Date: Sun, 31 Aug 2014 14:36:50 +0200 +Subject: [PATCH 2/3] libihash: fix comparison between signed and unsigned + integer + +* libihash/ihash.h (HURD_IHASH_ITERATE): Fix comparison between signed +and unsigned integer expressions. +--- + libihash/ihash.h | 3 ++- + 1 file changed, 2 insertions(+), 1 deletion(-) + +diff --git a/libihash/ihash.h b/libihash/ihash.h +index 345630d..849a55a 100644 +--- a/libihash/ihash.h ++++ b/libihash/ihash.h +@@ -241,7 +241,8 @@ hurd_ihash_value_t hurd_ihash_find (hurd_ihash_t ht, hurd_ihash_key_t key); + for (hurd_ihash_value_t val, \ + *_hurd_ihash_valuep = (ht)->size ? &(ht)->items[0].value : 0; \ + (ht)->size \ +- && ((_hurd_ihash_item_t) _hurd_ihash_valuep) - &(ht)->items[0] \ ++ && (size_t) ((_hurd_ihash_item_t) _hurd_ihash_valuep \ ++ - &(ht)->items[0]) \ + < (ht)->size \ + && (val = *_hurd_ihash_valuep, 1); \ + _hurd_ihash_valuep = (hurd_ihash_value_t *) \ +-- +2.1.0 + |