diff --git a/libvips/colour/HSV2sRGB.c b/libvips/colour/HSV2sRGB.c index 14c006f5..cce462f3 100644 --- a/libvips/colour/HSV2sRGB.c +++ b/libvips/colour/HSV2sRGB.c @@ -69,7 +69,7 @@ static void vips_HSV2sRGB_line(VipsColour *colour, VipsPel *out, VipsPel **in, for (i = 0; i < width; i++) { c = V* S / 255.0f; - x = C * (1 - abs(fmod(H / sixth_of_char, 2) - 1)); + x = c * (1 - abs(fmod(H / sixth_of_char, 2) - 1)); m = V - c; if (H < sixth_of_char) {