From eba9e3811e4d90c9346d23de7bcc0422dba67212 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Mon, 5 Dec 2016 00:41:58 +0100 Subject: Fix error MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- src/libclut.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src') diff --git a/src/libclut.h b/src/libclut.h index 144a929..80a2ce6 100644 --- a/src/libclut.h +++ b/src/libclut.h @@ -2015,15 +2015,15 @@ void (libclut_model_ciexyz_to_cieluv)(double, double, double, double, double, #define libclut_model_ciexyz_to_cieluv(X, Y, Z, Xn, Yn, Zn, L, u, v) \ do \ { \ - double x__ = (Xn), y__ = (Yn); \ - double t__ = x__ + 15 * y__ + 3 * (Zn); \ - double u__ = 4 * x__ / t__; \ - double v__ = 9 * y__ / t__; \ - x__ = (X), y__ = (Y); \ + double xn__ = (Xn), yn__ = (Yn); \ + double t__ = xn__ + 15 * yn__ + 3 * (Zn); \ + double u__ = 4 * xn__ / t__; \ + double v__ = 9 * yn__ / t__; \ + double x__ = (X), y__ = (Y); \ t__ = x__ + 15 * y__ + 3 * (Z); \ u__ = 4 * x__ / t__ - u__; \ v__ = 9 * y__ / t__ - v__; \ - y__ = (Y) / y__; \ + y__ /= yn__; \ if (y__ * 24389 <= (double)216) \ y__ *= 24389, y__ /= 27; \ else \ -- cgit v1.2.3-70-g09d2