From 1f264b165da86ca8206cd40a7eb569b9283996db Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Ekl=C3=B6f?= Date: Thu, 9 Apr 2020 13:35:02 +0200 Subject: [PATCH] config: use an unsigned constant, since we're shifting 31 bits --- config.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/config.c b/config.c index a97b8a38..d3bdb365 100644 --- a/config.c +++ b/config.c @@ -380,8 +380,8 @@ parse_section_cursor(const char *key, const char *value, struct config *conf, return false; } - conf->cursor.color.text = 1 << 31 | text_color; - conf->cursor.color.cursor = 1 << 31 | cursor_color; + conf->cursor.color.text = 1u << 31 | text_color; + conf->cursor.color.cursor = 1u << 31 | cursor_color; free(value_copy); }