abs->fabs

This commit is contained in:
JonDeen 2015-06-19 23:07:25 +02:00
parent 2967a3c4d4
commit 4c3fc35e00
1 changed files with 2 additions and 2 deletions

View File

@ -68,8 +68,8 @@ static void vips_HSV2sRGB_line(VipsColour *colour, VipsPel *out, VipsPel **in,
float c, x, m;
for (i = 0; i < width; i++) {
c = V* S / 255.0f;
x = c * (1 - abs(fmod(H / sixth_of_char, 2) - 1));
c = V * S / 255.0f;
x = c * (1 - fabs(fmod(H / sixth_of_char, 2) - 1));
m = V - c;
if (H < sixth_of_char) {