commit:     268c11a1f565820c6f4612cb21770249bf7d41db
Author:     Fabian Groffen <grobian <AT> gentoo <DOT> org>
AuthorDate: Mon Mar 11 20:16:51 2019 +0000
Commit:     Fabian Groffen <grobian <AT> gentoo <DOT> org>
CommitDate: Mon Mar 11 20:16:51 2019 +0000
URL:        https://gitweb.gentoo.org/proj/portage-utils.git/commit/?id=268c11a1

set: fix signedness warnings

Signed-off-by: Fabian Groffen <grobian <AT> gentoo.org>

 libq/set.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/libq/set.c b/libq/set.c
index 68799fe..f48921a 100644
--- a/libq/set.c
+++ b/libq/set.c
@@ -77,7 +77,7 @@ static set *
 add_set_unique(const char *name, set *q, bool *unique)
 {
        char *mname = xstrdup(name);
-       int hash;
+       unsigned int hash;
        int pos;
        elem *ll;
        elem *w;
@@ -123,7 +123,7 @@ static bool
 contains_set(char *s, set *q)
 {
        char *mname = xstrdup(s);
-       int hash;
+       unsigned int hash;
        int pos;
        elem *w;
        bool found;

Reply via email to