aboutsummaryrefslogtreecommitdiffstats
path: root/convert-template.c
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2017-06-11 10:23:28 +0200
committerMattias Andrée <maandree@kth.se>2017-06-11 10:23:28 +0200
commitd2e0d1bba83dc7c6ebf489d6fd78e9636621f8f8 (patch)
tree1445fd0b188fd4672adc78c5f0a0c6a779329a63 /convert-template.c
parentm (diff)
downloadlibcolour-d2e0d1bba83dc7c6ebf489d6fd78e9636621f8f8.tar.gz
libcolour-d2e0d1bba83dc7c6ebf489d6fd78e9636621f8f8.tar.bz2
libcolour-d2e0d1bba83dc7c6ebf489d6fd78e9636621f8f8.tar.xz
m
Signed-off-by: Mattias Andrée <maandree@kth.se>
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;
}