]> granicus.if.org Git - apache/commitdiff
Hmmm... gotta ask the wisdom in using aspecific types over apr_time_*_t
authorWilliam A. Rowe Jr <wrowe@apache.org>
Mon, 13 May 2002 20:17:31 +0000 (20:17 +0000)
committerWilliam A. Rowe Jr <wrowe@apache.org>
Mon, 13 May 2002 20:17:31 +0000 (20:17 +0000)
  types.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@95068 13f79535-47bb-0310-9956-ffa450edef68

modules/loggers/mod_log_config.c

index 99e437af229ae1ea9cd4d7455b65ccd03bc8b362..e8276404ef72379ac02fff7c60ccb6620644070a 100644 (file)
@@ -507,7 +507,7 @@ static const char *log_request_time(request_rec *r, char *a)
 #else
         apr_time_t request_time = r->request_time;
 #endif
-        unsigned i = request_time / APR_USEC_PER_SEC;
+        unsigned i = (unsigned)(request_time / APR_USEC_PER_SEC);
         i &= TIME_CACHE_MASK;
         memcpy(cached_time, &(request_time_cache[i]), sizeof(*cached_time));
         if ((request_time != cached_time->t) ||