diff options
author | David Robillard <d@drobilla.net> | 2020-07-30 20:54:49 +0200 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2020-07-30 20:55:28 +0200 |
commit | 473d9bd0cb085dee2fc73506ccdfce990aeee147 (patch) | |
tree | 3d57ab4200c29b7542bd1f830653acebd5c2a2c8 /src/color.h | |
parent | e75c1e1873165e269c78d624d194fd165756837d (diff) | |
download | ganv-473d9bd0cb085dee2fc73506ccdfce990aeee147.tar.gz ganv-473d9bd0cb085dee2fc73506ccdfce990aeee147.tar.bz2 ganv-473d9bd0cb085dee2fc73506ccdfce990aeee147.zip |
Use modern casts in C++ code
Diffstat (limited to 'src/color.h')
-rw-r--r-- | src/color.h | 5 |
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 |