diff --git a/src/tint.c b/src/tint.c index 3adad3b..0c339e9 100644 --- a/src/tint.c +++ b/src/tint.c @@ -122,7 +122,8 @@ void fps_compute_stats(double *low, double *median, double *high, double *sample float cum_median = 0.5f * total; float cum_high = 0.95f * total; float cum = 0; - for (int i = 1; i <= 166; i++) { + int i; + for (i = 1; i <= 166; i++) { double value = (i < 60) ? i : (i < 74) ? (60 + (i - 60) * 10) : (i < 146) ? (200 + (i - 74) * 25) : (i < 165) ? (2000 + (i - 146) * 1000) : 20000;