diff options
author | Jim Jagielski <jim@apache.org> | 2014-01-25 06:43:38 +0000 |
---|---|---|
committer | Jim Jagielski <jim@apache.org> | 2014-01-25 06:43:38 +0000 |
commit | de7c253acd89d222b79ecdfc9712ed0d7333e8b0 (patch) | |
tree | a78f70e3629cabf16df79f23dd035328be7559f0 /locks | |
parent | be75465184438c3cf436d35447cd72ef529655a0 (diff) | |
download | apr-de7c253acd89d222b79ecdfc9712ed0d7333e8b0.tar.gz |
force as 32bit ints, due to size constraints
git-svn-id: https://svn.apache.org/repos/asf/apr/apr/branches/1.5.x@1561267 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'locks')
-rw-r--r-- | locks/unix/proc_mutex.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/locks/unix/proc_mutex.c b/locks/unix/proc_mutex.c index f9637e03f..83089ebae 100644 --- a/locks/unix/proc_mutex.c +++ b/locks/unix/proc_mutex.c @@ -102,8 +102,8 @@ static apr_status_t proc_mutex_posix_create(apr_proc_mutex_t *new_mutex, apr_ssize_t flen = strlen(fname); char *p = apr_pstrndup(new_mutex->pool, fname, strlen(fname)); unsigned int h1, h2; - h1 = apr_hashfunc_default((const char *)p, &flen); - h2 = rshash(p); + h1 = (apr_hashfunc_default((const char *)p, &flen) & 0xffffffff); + h2 = (rshash(p) & 0xffffffff); apr_snprintf(semname, sizeof(semname), "/ApR.%xH%x", h1, h2); } else { apr_time_t now; |