apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From wr...@apache.org
Subject svn commit: r587438 - /apr/apr-util/trunk/xlate/xlate.c
Date Tue, 23 Oct 2007 09:56:01 GMT
Author: wrowe
Date: Tue Oct 23 02:56:01 2007
New Revision: 587438

URL: http://svn.apache.org/viewvc?rev=587438&view=rev
Log:
correct trivial size_t > int flaw

Modified:
    apr/apr-util/trunk/xlate/xlate.c

Modified: apr/apr-util/trunk/xlate/xlate.c
URL: http://svn.apache.org/viewvc/apr/apr-util/trunk/xlate/xlate.c?rev=587438&r1=587437&r2=587438&view=diff
==============================================================================
--- apr/apr-util/trunk/xlate/xlate.c (original)
+++ apr/apr-util/trunk/xlate/xlate.c Tue Oct 23 02:56:01 2007
@@ -387,8 +387,8 @@
 #endif
 
     if (inbuf) {
-        int to_convert = min(*inbytes_left, *outbytes_left);
-        int converted = to_convert;
+        apr_size_t to_convert = min(*inbytes_left, *outbytes_left);
+        apr_size_t converted = to_convert;
         char *table = convset->sbcs_table;
 
         while (to_convert) {



Mime
View raw message