diff options
author | Mattias Andrée <maandree@kth.se> | 2016-12-05 00:41:58 +0100 |
---|---|---|
committer | Mattias Andrée <maandree@kth.se> | 2016-12-05 00:41:58 +0100 |
commit | eba9e3811e4d90c9346d23de7bcc0422dba67212 (patch) | |
tree | 712ef1ee0a59b35f944905d39afaed03b0854fc7 /src | |
parent | m (diff) | |
download | libclut-eba9e3811e4d90c9346d23de7bcc0422dba67212.tar.gz libclut-eba9e3811e4d90c9346d23de7bcc0422dba67212.tar.bz2 libclut-eba9e3811e4d90c9346d23de7bcc0422dba67212.tar.xz |
Fix error
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to '')
-rw-r--r-- | src/libclut.h | 12 |
1 files changed, 6 insertions, 6 deletions
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 \ |