summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2015-06-16 16:45:39 +0100
committerCarl Hetherington <cth@carlh.net>2015-06-16 16:45:39 +0100
commitf9df63eeff90088b68b8087e45490c5627603117 (patch)
tree989708914e94d53098bb66cf92265dcc966c444a /src
parentf76f96258d55ed9f7fdd23cefa5a07e873f7d066 (diff)
parent0ccb533cf2b95b410213ca0257f30590d3b6d7c0 (diff)
Merge branch '.0' of git.carlh.net:git/libdcp into 1.0
Diffstat (limited to 'src')
-rw-r--r--src/rgb_xyz.cc12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/rgb_xyz.cc b/src/rgb_xyz.cc
index 293ad5e1..50c3bf7e 100644
--- a/src/rgb_xyz.cc
+++ b/src/rgb_xyz.cc
@@ -280,12 +280,12 @@ dcp::rgb_to_xyz (
++clamped;
}
- e.x = max (0.0d, e.x);
- e.y = max (0.0d, e.y);
- e.z = max (0.0d, e.z);
- e.x = min (65535.0d, e.x);
- e.y = min (65535.0d, e.y);
- e.z = min (65535.0d, e.z);
+ e.x = max (0.0, e.x);
+ e.y = max (0.0, e.y);
+ e.z = max (0.0, e.z);
+ e.x = min (65535.0, e.x);
+ e.y = min (65535.0, e.y);
+ e.z = min (65535.0, e.z);
/* Out gamma LUT */
xyz->data(0)[jn] = lut_out[int(rint(e.x))] * 4095;