diff options
author | Mattias Andrée <maandree@kth.se> | 2017-06-11 10:23:28 +0200 |
---|---|---|
committer | Mattias Andrée <maandree@kth.se> | 2017-06-11 10:23:28 +0200 |
commit | d2e0d1bba83dc7c6ebf489d6fd78e9636621f8f8 (patch) | |
tree | 1445fd0b188fd4672adc78c5f0a0c6a779329a63 | |
parent | m (diff) | |
download | libcolour-d2e0d1bba83dc7c6ebf489d6fd78e9636621f8f8.tar.gz libcolour-d2e0d1bba83dc7c6ebf489d6fd78e9636621f8f8.tar.bz2 libcolour-d2e0d1bba83dc7c6ebf489d6fd78e9636621f8f8.tar.xz |
m
Signed-off-by: Mattias Andrée <maandree@kth.se>
-rw-r--r-- | convert-template.c | 3 |
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; } |