aboutsummaryrefslogtreecommitdiffstats
path: root/convert-template.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--convert-template.c3
1 files changed, 2 insertions, 1 deletions
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;
}