From: simon Date: Wed, 4 Aug 2004 16:26:02 +0000 (+0000) Subject: Add an explicit cast to prevent a compiler warning. X-Git-Url: https://git.distorted.org.uk/~mdw/sgt/halibut/commitdiff_plain/f89b2ee63932f4438676db6fb2ae658410d92717 Add an explicit cast to prevent a compiler warning. git-svn-id: svn://svn.tartarus.org/sgt/halibut@4399 cda61777-01e9-0310-a592-d414129be87e --- diff --git a/winhelp.c b/winhelp.c index ec36031..9bf1bd0 100644 --- a/winhelp.c +++ b/winhelp.c @@ -418,7 +418,7 @@ static unsigned long context_hash(char *context) if (val > 0 && hash > (0xFFFFFFFFUL - val)) { hash -= (0xFFFFFFFFUL - val) + 1; - } else if (val < 0 && hash < -val) { + } else if (val < 0 && hash < (unsigned long)-val) { hash += (0xFFFFFFFFUL + val) + 1; } else hash += val;