From: Michael Schroeder Date: Tue, 24 Jul 2018 11:41:11 +0000 (+0200) Subject: Bring id2color check in poolarch.c in sync with poolarch.h X-Git-Tag: 0.6.35~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b1d9cd0262a8fd89cdfb6174b373f3cdf528b047;p=thirdparty%2Flibsolv.git Bring id2color check in poolarch.c in sync with poolarch.h --- diff --git a/src/poolarch.c b/src/poolarch.c index ca42fe28..4a1fa50c 100644 --- a/src/poolarch.c +++ b/src/poolarch.c @@ -146,7 +146,7 @@ pool_arch2color_slow(Pool *pool, Id arch) const char *s; unsigned char color; - if (arch > pool->lastarch) + if ((unsigned int)arch >= (unsigned int)pool->lastarch) return ARCHCOLOR_ALL; if (!pool->id2color) pool->id2color = solv_calloc(pool->lastarch + 1, 1);