diff options
author | Mattias Andrée <maandree@kth.se> | 2016-08-05 01:16:53 +0200 |
---|---|---|
committer | Mattias Andrée <maandree@kth.se> | 2016-08-05 01:16:53 +0200 |
commit | eefc5dd5fda4e78432955f500b98192a376c5207 (patch) | |
tree | c3b5f0e186c71fd407a02f160fe4e0b5ac202132 | |
parent | m test (diff) | |
download | libclut-eefc5dd5fda4e78432955f500b98192a376c5207.tar.gz libclut-eefc5dd5fda4e78432955f500b98192a376c5207.tar.bz2 libclut-eefc5dd5fda4e78432955f500b98192a376c5207.tar.xz |
Fix bug in libclut_apply__0.2
Signed-off-by: Mattias Andrée <maandree@kth.se>
-rw-r--r-- | src/libclut.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libclut.h b/src/libclut.h index 9e8c6f2..0b5f081 100644 --- a/src/libclut.h +++ b/src/libclut.h @@ -859,7 +859,7 @@ static inline int libclut_0__(double x) { return libclut_eq__(x, 0); } #define libclut_apply__(clut, max, type, filter, fmax, ftype, channel) \ do \ { \ - size_t i__, rn__ = (clut)->channel##_size - 1, fn__ = (filter)->channel##_size - 1; \ + size_t i__, rn__ = (clut)->channel##_size, fn__ = (filter)->channel##_size - 1; \ double x__, rm__ = (double)(max), m__ = (double)(max) / (double)(fmax); \ for (i__ = 0; i__ < rn__; i__++) \ { \ |