[babl] restore segfault for massimo



commit 422512f761f76833782db9109d7d4d20631a3e03
Author: Øyvind Kolås <pippin gimp org>
Date:   Fri Sep 8 18:21:46 2017 +0200

    restore segfault for massimo

 babl/babl-util.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/babl/babl-util.c b/babl/babl-util.c
index 7af1362..9148aff 100644
--- a/babl/babl-util.c
+++ b/babl/babl-util.c
@@ -91,7 +91,7 @@ babl_rel_avg_error (const double *imgA,
   for (i = 0; i < samples; i++)
     error += fabs (imgA[i] - imgB[i]);
 
-  if (!(error < 0.000001))
+  if (error <= 0.000001)
     error /= samples;
   else
     error = 0.0;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]