From: Ruediger Pluem Date: Tue, 30 Mar 2010 07:12:58 +0000 (+0000) Subject: * Fix compiler warning on 64 bit environments X-Git-Tag: 2.3.6~274 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=68603b126bd6aa0af33bd1354a174aecd7821040;p=thirdparty%2Fapache%2Fhttpd.git * 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 --- diff --git a/modules/dav/fs/repos.c b/modules/dav/fs/repos.c index 02f9a8ac4ef..0e290555726 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);