From 9717a2820b49c812d72b30edead14670cf8aefdf Mon Sep 17 00:00:00 2001 From: Jean-Yves Lamoureux Date: Mon, 16 Nov 2009 13:14:32 +0000 Subject: [PATCH] * Don't use float as loop counters --- caca/triangle.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/caca/triangle.c b/caca/triangle.c index 008df8d..f4e6b9f 100644 --- a/caca/triangle.c +++ b/caca/triangle.c @@ -225,7 +225,7 @@ int caca_fill_triangle_textured(caca_canvas_t *cv, u1*=(float)tw; u2*=(float)tw; u3*=(float)tw; v1*=(float)th; v2*=(float)th; v3*=(float)th; - float x = (float) x1, y = (float) y1; + int x, y; float y2y1 = y2-y1; float y3y1 = y3-y1; float y3y2 = y3-y2;