summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--plugins/xrdb/msd-xrdb-manager.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/xrdb/msd-xrdb-manager.c b/plugins/xrdb/msd-xrdb-manager.c
index 50961e6..f4c35a7 100644
--- a/plugins/xrdb/msd-xrdb-manager.c
+++ b/plugins/xrdb/msd-xrdb-manager.c
@@ -69,9 +69,9 @@ append_color_define (GString *string,
g_string_append_printf (string,
"#define %s #%2.2hx%2.2hx%2.2hx\n",
name,
- color->red>>8,
- color->green>>8,
- color->blue>>8);
+ (unsigned short) (color->red>>8),
+ (unsigned short) (color->green>>8),
+ (unsigned short) (color->blue>>8));
}
static GdkColor*