aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2016-08-05 01:04:50 +0200
committerMattias Andrée <maandree@kth.se>2016-08-05 01:04:50 +0200
commit7e7d434b7ad0bfcb8fa2d4f98704fce263905c8d (patch)
treecbc74efd752bef71b43b1a9e4b634b3b37b0240e /src
parentUpdate TODO (diff)
downloadlibclut-7e7d434b7ad0bfcb8fa2d4f98704fce263905c8d.tar.gz
libclut-7e7d434b7ad0bfcb8fa2d4f98704fce263905c8d.tar.bz2
libclut-7e7d434b7ad0bfcb8fa2d4f98704fce263905c8d.tar.xz
whoops
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to 'src')
-rw-r--r--src/libclut.h4
1 files changed, 2 insertions, 2 deletions
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)