From d2e0d1bba83dc7c6ebf489d6fd78e9636621f8f8 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Sun, 11 Jun 2017 10:23:28 +0200 Subject: m MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- convert-template.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/convert-template.c b/convert-template.c index ef061ab..ee6066d 100644 --- a/convert-template.c +++ b/convert-template.c @@ -408,7 +408,8 @@ to_cielchuv(const libcolour_colour_t *restrict from, libcolour_cielchuv_t *restr one_revolution = to->one_revolution; *to = from->cielchuv; to->one_revolution = one_revolution; - to->h = to->h / from->cielchuv.one_revolution * one_revolution; + to->h *= one_revolution; + to->h /= from->cielchuv.one_revolution; } break; } -- cgit v1.2.3-70-g09d2