Fix default cases in Color.c
All checks were successful
CI / build-and-analyze (push) Successful in 54s

This commit is contained in:
2026-07-21 19:02:24 +03:00
parent 41b0be7765
commit 15dabe30f2

View File

@@ -238,6 +238,8 @@ static void hsvToHsl(const CgeColor *color, CgeColor *out) {
void CgeColorToRGBA(const CgeColor *color, CgeColor *out) {
switch (color->type) {
default:
/* fallthrough */
case CGE_COLOR_RGBA:
*out = *color;
break;
@@ -259,6 +261,8 @@ void CgeColorToHSVA(const CgeColor *color, CgeColor *out) {
rgbToHsv(color, out);
break;
default:
/* fallthrough */
case CGE_COLOR_HSVA:
*out = *color;
break;
@@ -279,6 +283,8 @@ void CgeColorToHSLA(const CgeColor *color, CgeColor *out) {
hsvToHsl(color, out);
break;
default:
/* fallthrough */
case CGE_COLOR_HSLA:
*out = *color;
break;