From: Stefan Fritsch Date: Thu, 18 Nov 2010 20:23:59 +0000 (+0000) Subject: Fix 'comparison of unsigned expression < 0 is always false' warning. X-Git-Tag: 2.3.9~37 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=7b1a692c09a27b268f3d7c38aa2b349d24ff6152;p=apache Fix 'comparison of unsigned expression < 0 is always false' warning. (There was no actual problem as id is never set to a negative value.) git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1036606 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/modules/slotmem/mod_slotmem_plain.c b/modules/slotmem/mod_slotmem_plain.c index 0631bd38f1..75e1ecfeef 100644 --- a/modules/slotmem/mod_slotmem_plain.c +++ b/modules/slotmem/mod_slotmem_plain.c @@ -153,7 +153,7 @@ static apr_status_t slotmem_dptr(ap_slotmem_instance_t *score, unsigned int id, if (!score) return APR_ENOSHMAVAIL; - if (id < 0 || id >= score->num) + if (id >= score->num) return APR_ENOSHMAVAIL; ptr = score->base + score->size * id;