From 0cc25bd8f272f234c56c38817464b9a1f4650a34 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Wed, 13 Jul 2016 22:28:35 +0200 Subject: Suppress warning MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- src/libclut.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/libclut.h b/src/libclut.h index 3805f5d..eee13f1 100644 --- a/src/libclut.h +++ b/src/libclut.h @@ -547,24 +547,24 @@ static inline int libclut_0__(double x) { return libclut_eq__(x, 0); } do \ { \ size_t i__; \ - double m__; \ + double m__, max__ = (double)(max); \ if (r) \ { \ m__ = (double)((clut)->red_size - 1); \ for (i__ = 0; i__ < (clut)->red_size; i__++) \ - (clut)->red[i__] = (type)(((double)i__ / m__) * (max)); \ + (clut)->red[i__] = (type)(((double)i__ / m__) * max__); \ } \ if (g) \ { \ m__ = (double)((clut)->green_size - 1); \ for (i__ = 0; i__ < (clut)->green_size; i__++) \ - (clut)->green[i__] = (type)(((double)i__ / m__) * (max)); \ + (clut)->green[i__] = (type)(((double)i__ / m__) * max__); \ } \ if (b) \ { \ m__ = (double)((clut)->blue_size - 1); \ for (i__ = 0; i__ < (clut)->blue_size; i__++) \ - (clut)->blue[i__] = (type)(((double)i__ / m__) * (max)); \ + (clut)->blue[i__] = (type)(((double)i__ / m__) * max__); \ } \ } \ while (0) -- cgit v1.2.3-70-g09d2