From 68603b126bd6aa0af33bd1354a174aecd7821040 Mon Sep 17 00:00:00 2001 From: Ruediger Pluem Date: Tue, 30 Mar 2010 07:12:58 +0000 Subject: [PATCH] * Fix compiler warning on 64 bit environments git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@929022 13f79535-47bb-0310-9956-ffa450edef68 --- modules/dav/fs/repos.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/dav/fs/repos.c b/modules/dav/fs/repos.c index 02f9a8ac4e..0e29055572 100644 --- a/modules/dav/fs/repos.c +++ b/modules/dav/fs/repos.c @@ -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); -- 2.40.0