Author: stas
Date: Thu Dec  7 11:27:58 2006
New Revision: 483625

URL: http://svn.apache.org/viewvc?view=rev&rev=483625
Log:
a minor compilation warning resolved in modperl_gtop_size_string


Modified:
    perl/modperl/trunk/Changes
    perl/modperl/trunk/src/modules/perl/modperl_gtop.c

Modified: perl/modperl/trunk/Changes
URL: 
http://svn.apache.org/viewvc/perl/modperl/trunk/Changes?view=diff&rev=483625&r1=483624&r2=483625
==============================================================================
--- perl/modperl/trunk/Changes (original)
+++ perl/modperl/trunk/Changes Thu Dec  7 11:27:58 2006
@@ -12,6 +12,9 @@
 
 =item 2.0.4-dev
 
+a minor compilation warning resolved in modperl_gtop_size_string
+[Stas]
+
 Prevent direct use of _deprecated_ Apache2::ReadConfig in
 <Perl> sections with httpd Alias directives from 
 incorrectly generating

Modified: perl/modperl/trunk/src/modules/perl/modperl_gtop.c
URL: 
http://svn.apache.org/viewvc/perl/modperl/trunk/src/modules/perl/modperl_gtop.c?view=diff&rev=483625&r1=483624&r2=483625
==============================================================================
--- perl/modperl/trunk/src/modules/perl/modperl_gtop.c (original)
+++ perl/modperl/trunk/src/modules/perl/modperl_gtop.c Thu Dec  7 11:27:58 2006
@@ -31,7 +31,7 @@
     }
     else if (size < 1048576) {
         apr_snprintf(size_string, MP_GTOP_SSS, "%dk",
-                     (size + 512) / 1024);
+                     (int)(size + 512) / 1024);
     }
     else if (size < 103809024) {
         apr_snprintf(size_string, MP_GTOP_SSS, "%.1fM",
@@ -39,7 +39,7 @@
     }
     else {
         apr_snprintf(size_string, MP_GTOP_SSS, "%dM",
-                     (size + 524288) / 1048576);
+                     (int)(size + 524288) / 1048576);
     }
 
     return 1;


Reply via email to