mirror of
https://github.com/edu4rdshl/gnome-shell.git
synced 2026-07-17 23:24:51 +00:00
st/icon-theme: Remove unnecessary CLAMP()
The ClutterColor struct members are 8-bit unsigned integers, so they are always in the 0 to 255 range. Spotted by coverity. Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2679>
This commit is contained in:
parent
74c5bb270d
commit
02fc765baa
1 changed files with 3 additions and 3 deletions
|
|
@ -3659,9 +3659,9 @@ static char *
|
|||
color_to_string_noalpha (const ClutterColor *color)
|
||||
{
|
||||
return g_strdup_printf ("rgb(%d,%d,%d)",
|
||||
CLAMP (color->red, 0, 255),
|
||||
CLAMP (color->green, 0, 255),
|
||||
CLAMP (color->blue, 0, 255));
|
||||
color->red,
|
||||
color->green,
|
||||
color->blue);
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue