[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
- [hurd] 43/87: ext2fs: use correct type for block numbers, (continued)
- [hurd] 43/87: ext2fs: use correct type for block numbers, Samuel Thibault, 2014/11/09
- [hurd] 42/87: libdiskfs: fix deadlock, Samuel Thibault, 2014/11/09
- [hurd] 44/87: libpipe: fix calls to pipe_send with no data, Samuel Thibault, 2014/11/09
- [hurd] 24/87: ext2fs: fix type of retry_dotdot, Samuel Thibault, 2014/11/09
- [hurd] 23/87: ext2fs: fix type of blockaddr, Samuel Thibault, 2014/11/09
- [hurd] 30/87: utils/settrans: implement settrans --start, Samuel Thibault, 2014/11/09
- [hurd] 25/87: Prepare the random translator to be merged into the Hurd sources, Samuel Thibault, 2014/11/09
- [hurd] 46/87: libpipe: fix spurious calls to pipe_send, Samuel Thibault, 2014/11/09
- [hurd] 48/87: Make settrans return value returned by chroot command, Samuel Thibault, 2014/11/09
- [hurd] 51/87: Fix ifsock permission check, Samuel Thibault, 2014/11/09
- [hurd] 55/87: libihash: fix comparison between signed and unsigned integer,
Samuel Thibault <=
- [hurd] 54/87: trans/mtab: use setnullauth to drop privileges, Samuel Thibault, 2014/11/09
- [hurd] 21/87: ext2fs: fix compiler warning, Samuel Thibault, 2014/11/09
- [hurd] 49/87: Add missing linefeed, Samuel Thibault, 2014/11/09
- [hurd] 58/87: libdiskfs: fix /servers/exec lookup, Samuel Thibault, 2014/11/09
- [hurd] 59/87: hurd: make memory_object parameter polymorphic, Samuel Thibault, 2014/11/09
- [hurd] 61/87: procfs: fix typo in comment, Samuel Thibault, 2014/11/09
- [hurd] 53/87: libtrivfs: fix typo, Samuel Thibault, 2014/11/09
- [hurd] 64/87: BSD apps want sin_zero cleared in sys_getname., Samuel Thibault, 2014/11/09
- [hurd] 60/87: trans/hello{, -mt}: properly escape contents in trivfs_append_args, Samuel Thibault, 2014/11/09
- [hurd] 66/87: exec: redzone page zero before loading anything, Samuel Thibault, 2014/11/09