From 7e7d434b7ad0bfcb8fa2d4f98704fce263905c8d Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Fri, 5 Aug 2016 01:04:50 +0200 Subject: whoops MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- src/libclut.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/libclut.h b/src/libclut.h index 7e1fedc..9e8c6f2 100644 --- a/src/libclut.h +++ b/src/libclut.h @@ -422,10 +422,10 @@ static inline int libclut_0__(double x) { return libclut_eq__(x, 0); } size_t i__; \ for (i__ = 0; i__ < (clut)->channel##_size; i__++) \ { \ - l__ = log(m__ / (clut)->red[i__] - 1); \ + l__ = log(m__ / (clut)->channel[i__] - 1); \ if (isnan(l__) || isinf(l__)) \ l__ = 37.024483 * (isinf(l__) > 0 ? +1 : -1); \ - (clut)->red[i__] = (type)(m__ * (h__ - l__ / s__)); \ + (clut)->channel[i__] = (type)(m__ * (h__ - l__ / s__)); \ } \ } \ while (0) -- cgit v1.2.3-70-g09d2