From 960fa45a5852452418188d55adfd6172a8a77a4a Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Tue, 17 Nov 2015 21:21:30 +0000 Subject: Fix rounding error exposed by different test random set. --- src/rgb_xyz.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src') 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); } } -- cgit v1.2.3