From 555eb227a8eda8aa663052c8c7fc56dbcbfce5e4 Mon Sep 17 00:00:00 2001 From: Goddesen Date: Mon, 11 Jul 2016 02:12:19 +0200 Subject: [PATCH] Remove uint32 cast - size_t can be safely compared to size_t. --- src/windows/text_input.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/windows/text_input.c b/src/windows/text_input.c index fbd844d4fa..1b74e34bd6 100644 --- a/src/windows/text_input.c +++ b/src/windows/text_input.c @@ -297,7 +297,7 @@ static void window_text_input_paint(rct_window *w, rct_drawpixelinfo *dpi) cursorY = y; int width = 6; - if ((uint32)gTextInput.selection_offset < strlen(text_input)){ + if (gTextInput.selection_offset < strlen(text_input)){ // Make a 1 utf8-character wide string for measuring the width // of the currently selected character. utf8 tmp[5] = { 0 }; // This is easier than setting temp_string[0..5]