From 24c1379e487f973e18f114eecfb12246cfcd0118 Mon Sep 17 00:00:00 2001 From: neingeist Date: Wed, 15 May 2013 10:34:03 +0200 Subject: [PATCH] floats will be floats --- mandelbrot.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mandelbrot.c b/mandelbrot.c index 8dba99a..90cae93 100644 --- a/mandelbrot.c +++ b/mandelbrot.c @@ -25,8 +25,8 @@ void drawmandelbrot(SDL_Surface *surface) { int y = i / surface->w; int x = i % surface->w; - float complex c = ((3.0 * x / surface->w) - 2.0) - + I * ((2.0 * y / surface->h) - 1.0); + float complex c = ((3.0f * x / surface->w) - 2.0f) + + I * ((2.0f * y / surface->h) - 1.0f); bool diverges = false; float complex z = 0;