summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Bühler <stbuehler@web.de>2015-08-22 16:00:56 +0000
committerStefan Bühler <stbuehler@web.de>2015-08-22 16:00:56 +0000
commitfa8b154628faa4ce234d83f99cd9cb64e9a673c3 (patch)
tree92fab90b6cfc4ab10bb3109116baab9bda9f7366
parent5c5616e3e520b0f5f5c936a7bff498f2189f7ccb (diff)
downloadlighttpd-git-fa8b154628faa4ce234d83f99cd9cb64e9a673c3.tar.gz
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
-rw-r--r--NEWS1
-rw-r--r--src/stat_cache.c2
2 files changed, 2 insertions, 1 deletions
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;
}