apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From wr...@apache.org
Subject svn commit: r586627 - /apr/apr/trunk/test/sockperf.c
Date Fri, 19 Oct 2007 22:11:14 GMT
Author: wrowe
Date: Fri Oct 19 15:11:13 2007
New Revision: 586627

URL: http://svn.apache.org/viewvc?rev=586627&view=rev
Log:
Avoid a truncation emit, keep the math size_t big.

Modified:
    apr/apr/trunk/test/sockperf.c

Modified: apr/apr/trunk/test/sockperf.c
URL: http://svn.apache.org/viewvc/apr/apr/trunk/test/sockperf.c?rev=586627&r1=586626&r2=586627&view=diff
==============================================================================
--- apr/apr/trunk/test/sockperf.c (original)
+++ apr/apr/trunk/test/sockperf.c Fri Oct 19 15:11:13 2007
@@ -220,7 +220,7 @@
 
     for(i = 0; i < nTests; i++) {
         printf("Test -> %c\n", testRuns[i].c);
-        results[i].size = testRuns[i].size * TEST_SIZE;
+        results[i].size = testRuns[i].size * (apr_size_t)TEST_SIZE;
         rv = runTest(&testRuns[i], &results[i], pool);
     }
 



Mime
View raw message