summaryrefslogtreecommitdiffstats
path: root/src/color.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/color.h')
-rw-r--r--src/color.h5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/color.h b/src/color.h
index ca52d98..97381fb 100644
--- a/src/color.h
+++ b/src/color.h
@@ -54,10 +54,7 @@ highlight_color(guint c, guint delta)
const guint b = MIN(((c >> 8) & 0xFF) + delta, max_char);
const guint a = c & 0xFF;
- return ((((guint)(r)) << 24) |
- (((guint)(g)) << 16) |
- (((guint)(b)) << 8) |
- (((guint)(a))));
+ return ((r << 24) | (g << 16) | (b << 8) | a);
}
#endif // GANV_UTIL_H