From c70b8c42c55d38a88670df82f6853cb3d5de7674 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Sun, 5 Mar 2017 19:02:32 +0100 Subject: [PATCH] Cleanups to word_wrap --- libretro-common/string/stdstring.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libretro-common/string/stdstring.c b/libretro-common/string/stdstring.c index 8aa4cff2e7..44b40b205c 100644 --- a/libretro-common/string/stdstring.c +++ b/libretro-common/string/stdstring.c @@ -171,10 +171,10 @@ char* word_wrap(char* buffer, char* string, int line_width) while(i < strlen(string)) { - int counter; + unsigned counter; /* copy string until the end of the line is reached */ - for (counter = 1; counter <= line_width; counter++) + for (counter = 1; counter <= (unsigned)line_width; counter++) { /* check if end of string reached */ if (i == strlen(string))