From 7dc7d474f864b946b5fd70c511b58f3be1f091d5 Mon Sep 17 00:00:00 2001 From: neingeist Date: Mon, 13 May 2013 13:38:56 +0200 Subject: [PATCH] floats will be floats --- mandelbrot.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mandelbrot.c b/mandelbrot.c index 46b4725..6b4997c 100644 --- a/mandelbrot.c +++ b/mandelbrot.c @@ -34,7 +34,7 @@ void drawmandelbrot(SDL_Surface *surface) { z = cpowf(z, 2) + c; /* If |z| ever gets greater than 2, it diverges. */ - if (cabs(z) > 2) { + if (cabsf(z) > 2) { diverges = true; break; }