diff options
Diffstat (limited to 'Smoke/palette.c')
-rw-r--r-- | Smoke/palette.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Smoke/palette.c b/Smoke/palette.c index 49b0354..91b944f 100644 --- a/Smoke/palette.c +++ b/Smoke/palette.c @@ -29,7 +29,7 @@ void HSVtoRGB(float *r, float *g, float *b, float h, float s, float v) } h /= 60; // sector 0 to 5 - i = floor(h); + i = (int)floor(h); f = h - i; // factorial part of h p = v * (1 - s); q = v * (1 - s * f); |