diff options
| author | Simon Tatham <anakin@pobox.com> | 2004-08-04 16:26:02 +0000 |
|---|---|---|
| committer | Simon Tatham <anakin@pobox.com> | 2004-08-04 16:26:02 +0000 |
| commit | b75127515b10322081512606885af6d913117ee4 (patch) | |
| tree | 37e3522dbcc2ee9571ce26c7d3bb782935b08585 | |
| parent | 52bb851927bccd84b858f66b2b0544b4f39083a7 (diff) | |
| download | halibut-b75127515b10322081512606885af6d913117ee4.zip halibut-b75127515b10322081512606885af6d913117ee4.tar.gz halibut-b75127515b10322081512606885af6d913117ee4.tar.bz2 halibut-b75127515b10322081512606885af6d913117ee4.tar.xz | |
Add an explicit cast to prevent a compiler warning.
[originally from svn r4399]
| -rw-r--r-- | winhelp.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; |