diff --git a/NEWS b/NEWS index 943f7725..76376169 100644 --- a/NEWS +++ b/NEWS @@ -8,6 +8,7 @@ NEWS * [mod_dirlisting] fix dir-listing.set-footer not showing * fix out-of-filedescriptors when uploading "large" files (fixes #2660, thx rmilecki) * increase upload temporary chunk file size from 1MB to 16MB + * fix undefined integer shift - 1.4.36 - 2015-07-26 * use keep-alive timeout while waiting for HTTP headers; use always the read timeout while waiting for the HTTP body diff --git a/src/stat_cache.c b/src/stat_cache.c index dedea4bf..dd381d78 100644 --- a/src/stat_cache.c +++ b/src/stat_cache.c @@ -249,7 +249,7 @@ static uint32_t hashme(buffer *str) { hash = ((hash << 5) + hash) + *s; } - hash &= ~(1 << 31); /* strip the highest bit */ + hash &= ~(((uint32_t)1) << 31); /* strip the highest bit */ return hash; }