You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@apr.apache.org by ji...@apache.org on 2014/01/25 07:43:38 UTC

svn commit: r1561267 - /apr/apr/branches/1.5.x/locks/unix/proc_mutex.c

Author: jim
Date: Sat Jan 25 06:43:38 2014
New Revision: 1561267

URL: http://svn.apache.org/r1561267
Log:
force as 32bit ints, due to size constraints

Modified:
    apr/apr/branches/1.5.x/locks/unix/proc_mutex.c

Modified: apr/apr/branches/1.5.x/locks/unix/proc_mutex.c
URL: http://svn.apache.org/viewvc/apr/apr/branches/1.5.x/locks/unix/proc_mutex.c?rev=1561267&r1=1561266&r2=1561267&view=diff
==============================================================================
--- apr/apr/branches/1.5.x/locks/unix/proc_mutex.c (original)
+++ apr/apr/branches/1.5.x/locks/unix/proc_mutex.c Sat Jan 25 06:43:38 2014
@@ -102,8 +102,8 @@ static apr_status_t proc_mutex_posix_cre
         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;