summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2015-11-17 21:21:30 +0000
committerCarl Hetherington <cth@carlh.net>2015-11-17 21:21:30 +0000
commit960fa45a5852452418188d55adfd6172a8a77a4a (patch)
tree81052cda84170137f42baa427d837b00314b5ebb /src
parent2aeb895aa5c05e0db6cfa36bef2d6d8cb2e59bfa (diff)
Fix rounding error exposed by different test random set.
Diffstat (limited to 'src')
-rw-r--r--src/rgb_xyz.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/rgb_xyz.cc b/src/rgb_xyz.cc
index 23c99897..78083a7d 100644
--- a/src/rgb_xyz.cc
+++ b/src/rgb_xyz.cc
@@ -305,9 +305,9 @@ dcp::rgb_to_xyz (
d.z = min (65535.0, d.z);
/* Out gamma LUT */
- *xyz_x++ = lut_out[lrint(d.x)] * 4095;
- *xyz_y++ = lut_out[lrint(d.y)] * 4095;
- *xyz_z++ = lut_out[lrint(d.z)] * 4095;
+ *xyz_x++ = lrint (lut_out[lrint(d.x)] * 4095);
+ *xyz_y++ = lrint (lut_out[lrint(d.y)] * 4095);
+ *xyz_z++ = lrint (lut_out[lrint(d.z)] * 4095);
}
}