From 567fed2981dc33bdba18e068b40237a1bab400f0 Mon Sep 17 00:00:00 2001 From: o9000 Date: Sat, 8 Oct 2016 18:32:38 +0200 Subject: [PATCH] Profiling code: C89 style --- src/tint.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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;