Skip to content

Commit

Permalink
0 is a special case for pow()
Browse files Browse the repository at this point in the history
Cristy committed Jan 19, 2025
1 parent 9273220 commit 3a3deb5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion magick/statistic.c
Original file line number Diff line number Diff line change
@@ -365,7 +365,7 @@ static MagickRealType ApplyEvaluateOperator(RandomInfo *random_info,
}
case PowEvaluateOperator:
{
if (PerceptibleReciprocal(value) <= MagickEpsilon)
if (fabs(value) <= MagickEpsilon)
break;
if (((double) pixel < 0.0) && ((value-floor(value)) > MagickEpsilon))
result=(double) -((MagickRealType) QuantumRange*pow(-(QuantumScale*

0 comments on commit 3a3deb5

Please sign in to comment.