commit-hurd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[hurd] 55/87: libihash: fix comparison between signed and unsigned integ


From: Samuel Thibault
Subject: [hurd] 55/87: libihash: fix comparison between signed and unsigned integer
Date: Sun, 09 Nov 2014 11:05:04 +0000

This is an automated email from the git hooks/post-receive script.

sthibault pushed a commit to branch upstream
in repository hurd.

commit c5f866e17c72302d826b885f098b1c07d7abdbc7
Author: Justus Winter <address@hidden>
Date:   Sun Aug 31 14:36:50 2014 +0200

    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 *)                     \

-- 
Alioth's /usr/local/bin/git-commit-notice on 
/srv/git.debian.org/git/pkg-hurd/hurd.git



reply via email to

[Prev in Thread] Current Thread [Next in Thread]