[babl] guard gamma defines' argument in extra ()s
- From: Ãyvind KolÃs <ok src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [babl] guard gamma defines' argument in extra ()s
- Date: Mon, 23 Apr 2012 22:59:55 +0000 (UTC)
commit 18b4f45d258c75ea4e5c30b7f9a792aded31c196
Author: Ãyvind KolÃs <pippin gimp org>
Date: Tue Apr 24 00:59:23 2012 +0200
guard gamma defines' argument in extra ()s
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 a9d2049..8c6b669 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]