resample: replace discriminant by 0 if not strictly positive
diff --git a/MagickCore/resample.c b/MagickCore/resample.c
index 225d446..e3477dd 100644
--- a/MagickCore/resample.c
+++ b/MagickCore/resample.c
@@ -895,7 +895,7 @@
const double discriminant =
(frobenius_squared+twice_det)*(frobenius_squared-twice_det);
const double sqrt_discriminant =
- sqrt(discriminant < -0.0 ? 0.0 : discriminant);
+ sqrt(discriminant > 0.0 ? discriminant : 0.0);
/*
* s1 is the largest singular value of the inverse Jacobian
* matrix. In other words, its reciprocal is the smallest singular