diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2023-07-30 11:17:31 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2023-07-30 11:17:31 +0000 |
| commit | 89d0fe561f733ed54e31256c4c411afc9e9000f6 (patch) | |
| tree | 3199d56c7eca813a69c0bd57aa5deee8da2b6c71 /hsl.c | |
| parent | meson: bump version to 1.15.1 (diff) | |
| parent | --window-size-chars: ensure width/height are valid for current scaling factor (diff) | |
Merge branch 'master' into releases/1.15
Diffstat (limited to 'hsl.c')
| -rw-r--r-- | hsl.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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); } |
