41a6c3
--- a/support/ab.c	2014/08/14 12:12:38	1617912
41a6c3
+++ b/support/ab.c	2014/08/14 12:15:31	1617913
41a6c3
@@ -1029,7 +1029,7 @@
41a6c3
                            ap_round_ms(stats[done - 1].time));
41a6c3
                 else
41a6c3
                     printf("  %d%%  %5" APR_TIME_T_FMT "\n", percs[i],
41a6c3
-                           ap_round_ms(stats[(int) (done * percs[i] / 100)].time));
41a6c3
+                           ap_round_ms(stats[(unsigned long)done * percs[i] / 100].time));
41a6c3
             }
41a6c3
         }
41a6c3
         if (csvperc) {
41a6c3
@@ -1046,7 +1046,7 @@
41a6c3
                 else if (i == 100)
41a6c3
                     t = ap_double_ms(stats[done - 1].time);
41a6c3
                 else
41a6c3
-                    t = ap_double_ms(stats[(int) (0.5 + done * i / 100.0)].time);
41a6c3
+                    t = ap_double_ms(stats[(unsigned long) (0.5 + (double)done * i / 100.0)].time);
41a6c3
                 fprintf(out, "%d,%.3f\n", i, t);
41a6c3
             }
41a6c3
             fclose(out);