From 02fc765baa9ffb49f3e041f72bd2eb25d766a950 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20M=C3=BCllner?= Date: Fri, 3 Feb 2023 15:52:46 +0100 Subject: [PATCH] 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: --- src/st/st-icon-theme.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/st/st-icon-theme.c b/src/st/st-icon-theme.c index a7cbd0da8..dc3f8cedc 100644 --- a/src/st/st-icon-theme.c +++ b/src/st/st-icon-theme.c @@ -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