floats will be floats
This commit is contained in:
parent
b12b4ff429
commit
7dc7d474f8
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue