[babl] Revert "guard gamma defines' argument in extra ()s"



commit 3330e235bbc21221df17152f8b0a50d400b5d819
Author: Ãyvind KolÃs <pippin gimp org>
Date:   Tue Apr 24 01:20:50 2012 +0200

    Revert "guard gamma defines' argument in extra ()s"
    
    This reverts commit 18b4f45d258c75ea4e5c30b7f9a792aded31c196.

 babl/base/util.h |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/babl/base/util.h b/babl/base/util.h
index 8c6b669..a9d2049 100644
--- a/babl/base/util.h
+++ b/babl/base/util.h
@@ -78,7 +78,7 @@ linear_to_gamma_2_2 (double value)
 #else
 
 #define linear_to_gamma_2_2(value) \
-  (((value) > 0.0030402477F)? 1.055F * xpow512 ((value)) - 0.055F: 12.92F * (value))
+  ((value > 0.0030402477F)? 1.055F * xpow512 (value) - 0.055F: 12.92F * value)
 #endif
 
 #if 0
@@ -91,7 +91,7 @@ gamma_2_2_to_linear (double value)
 }
 #else
 #define gamma_2_2_to_linear(value) \
-  (((value) > 0.03928F) ?  pow (((value) + 0.055F) / 1.055F, 2.4F):(value) / 12.92F)
+  ((value > 0.03928F) ?  pow ((value + 0.055F) / 1.055F, 2.4F):value / 12.92F)
 #endif
 
 #else



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