diff options
author | Justus Winter <4winter@informatik.uni-hamburg.de> | 2014-08-31 14:36:50 +0200 |
---|---|---|
committer | Justus Winter <4winter@informatik.uni-hamburg.de> | 2014-08-31 16:40:55 +0200 |
commit | c5f866e17c72302d826b885f098b1c07d7abdbc7 (patch) | |
tree | 3c12aa1a5ab30c68e4d4ff35fabf9f606851ac48 /libihash/ihash.h | |
parent | 6fd075df8f71c95cff04d58643e5da0d58dbbada (diff) |
libihash: fix comparison between signed and unsigned integer
* libihash/ihash.h (HURD_IHASH_ITERATE): Fix comparison between signed
and unsigned integer expressions.
Diffstat (limited to 'libihash/ihash.h')
-rw-r--r-- | libihash/ihash.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libihash/ihash.h b/libihash/ihash.h index 345630d5..849a55a2 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 *) \ |