httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From di...@apache.org
Subject cvs commit: apache-1.3/src/main util_script.c
Date Thu, 11 Oct 2001 23:37:39 GMT
dirkx       01/10/11 16:37:39

  Modified:    src/main util_script.c
  Log:
  Fix a warning on MacOS 10.0
  
  Revision  Changes    Path
  1.159     +2 -2      apache-1.3/src/main/util_script.c
  
  Index: util_script.c
  ===================================================================
  RCS file: /home/cvs/apache-1.3/src/main/util_script.c,v
  retrieving revision 1.158
  retrieving revision 1.159
  diff -u -r1.158 -r1.159
  --- util_script.c	2001/05/09 05:17:11	1.158
  +++ util_script.c	2001/10/11 23:37:39	1.159
  @@ -721,13 +721,13 @@
   	ap_rputs("   1k", r);
       }
       else if (size < 1048576) {
  -	ap_rprintf(r, "%4dk", (size + 512) / 1024);
  +	ap_rprintf(r, "%4dk", (int)((size + 512) / 1024));
       }
       else if (size < 103809024) {
   	ap_rprintf(r, "%4.1fM", size / 1048576.0);
       }
       else {
  -	ap_rprintf(r, "%4dM", (size + 524288) / 1048576);
  +	ap_rprintf(r, "%4dM", (int)((size + 524288) / 1048576));
       }
   }
   
  
  
  

Mime
View raw message