aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFabian Groffen <grobian@gentoo.org>2019-03-11 21:16:51 +0100
committerFabian Groffen <grobian@gentoo.org>2019-03-11 21:16:51 +0100
commit268c11a1f565820c6f4612cb21770249bf7d41db (patch)
tree153cdb375fa523724a678bc69d154fda053eb5e1
parenttests: fix compilation (diff)
downloadportage-utils-268c11a1.tar.gz
portage-utils-268c11a1.tar.bz2
portage-utils-268c11a1.zip
set: fix signedness warnings
Signed-off-by: Fabian Groffen <grobian@gentoo.org>
-rw-r--r--libq/set.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libq/set.c b/libq/set.c
index 68799fe2..f48921ab 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;