aboutsummaryrefslogtreecommitdiff
path: root/hsl.c
diff options
context:
space:
mode:
Diffstat (limited to 'hsl.c')
-rw-r--r--hsl.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/hsl.c b/hsl.c
index 3ebe4beb..d5d00e67 100644
--- a/hsl.c
+++ b/hsl.c
@@ -83,7 +83,7 @@ hsl_to_rgb(int hue, int sat, int lum)
b += m;
return (
- (int)round(r * 255.) << 16 |
- (int)round(g * 255.) << 8 |
- (int)round(b * 255.) << 0);
+ (uint8_t)round(r * 255.) << 16 |
+ (uint8_t)round(g * 255.) << 8 |
+ (uint8_t)round(b * 255.) << 0);
}