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; }