fix undefined integer shift

From: Stefan Bühler <stbuehler@web.de>

git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@3011 152afb58-edef-0310-8abb-c4023f1b3aa9
svn/tags/lighttpd-1.4.37
Stefan Bühler 7 years ago
parent 5c5616e3e5
commit fa8b154628
  1. 1
      NEWS
  2. 2
      src/stat_cache.c

@ -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

@ -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;
}

Loading…
Cancel
Save