]> granicus.if.org Git - apache/commitdiff
* Fix compiler warning on 64 bit environments
authorRuediger Pluem <rpluem@apache.org>
Tue, 30 Mar 2010 07:12:58 +0000 (07:12 +0000)
committerRuediger Pluem <rpluem@apache.org>
Tue, 30 Mar 2010 07:12:58 +0000 (07:12 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@929022 13f79535-47bb-0310-9956-ffa450edef68

modules/dav/fs/repos.c

index 02f9a8ac4ef9dc0c63b37d96d11cb05ba988442a..0e2905557261659d784cab666c3aaebe4d853d1f 100644 (file)
@@ -892,7 +892,8 @@ static apr_status_t tmpfile_cleanup(void *data) {
 static apr_status_t dav_fs_mktemp(apr_file_t **fp, char *templ, apr_pool_t *p)
 {
     apr_status_t rv;
-    int num = ((getpid() << 7) + (int)templ % (1 << 16) ) % ( 1 << 23 ) ;
+    int num = ((getpid() << 7) + (apr_uintptr_t)templ % (1 << 16) ) %
+               ( 1 << 23 ) ;
     char *numstr = templ + strlen(templ) - 6;
 
     ap_assert(numstr >= templ);