apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From wr...@apache.org
Subject svn commit: r587611 - /apr/apr-util/branches/1.2.x/xlate/xlate.c
Date Tue, 23 Oct 2007 19:02:46 GMT
Author: wrowe
Date: Tue Oct 23 12:02:45 2007
New Revision: 587611

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

Backport: r587483

Modified:
    apr/apr-util/branches/1.2.x/xlate/xlate.c

Modified: apr/apr-util/branches/1.2.x/xlate/xlate.c
URL: http://svn.apache.org/viewvc/apr/apr-util/branches/1.2.x/xlate/xlate.c?rev=587611&r1=587610&r2=587611&view=diff
==============================================================================
--- apr/apr-util/branches/1.2.x/xlate/xlate.c (original)
+++ apr/apr-util/branches/1.2.x/xlate/xlate.c Tue Oct 23 12:02:45 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