summaryrefslogtreecommitdiff
path: root/src/stat_cache.c
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 /src/stat_cache.c
parent5c5616e3e520b0f5f5c936a7bff498f2189f7ccb (diff)
downloadlighttpd1.4-fa8b154628faa4ce234d83f99cd9cb64e9a673c3.tar.gz
lighttpd1.4-fa8b154628faa4ce234d83f99cd9cb64e9a673c3.zip
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
Diffstat (limited to 'src/stat_cache.c')
-rw-r--r--src/stat_cache.c2
1 files changed, 1 insertions, 1 deletions
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;
}