aboutsummaryrefslogtreecommitdiff
path: root/algorithms/mandelbrot.c
diff options
context:
space:
mode:
Diffstat (limited to 'algorithms/mandelbrot.c')
-rw-r--r--algorithms/mandelbrot.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/algorithms/mandelbrot.c b/algorithms/mandelbrot.c
index 8225d8c..8b59f2f 100644
--- a/algorithms/mandelbrot.c
+++ b/algorithms/mandelbrot.c
@@ -25,7 +25,7 @@
* SUCH DAMAGE.
*/
-#include "../fractal-gen.h"
+#include "common.h"
void *generate_mandelbrot_section(void *section)
{
@@ -50,7 +50,7 @@ void *generate_mandelbrot_section(void *section)
c = a + I*b;
for (i = 0; i < iterat; i++)
{
- if (cabsf(z) >= 2)
+ if (cabs(z) >= 2)
break;
z = cpow(z , power) + c;