From 6fa1c472b198310c5f157920b69a1b9bf4fd2029 Mon Sep 17 00:00:00 2001 From: Silver Kits Date: Mon, 21 Nov 2016 10:26:55 +0200 Subject: [PATCH] Fix microrl compile error: lib/helius_microrl/microrl.c:476:22: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare] --- lib/helius_microrl/microrl.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/helius_microrl/microrl.c b/lib/helius_microrl/microrl.c index 55b7ced..53c72a3 100755 --- a/lib/helius_microrl/microrl.c +++ b/lib/helius_microrl/microrl.c @@ -467,10 +467,10 @@ static void microrl_backspace (microrl_t * pThis) //***************************************************************************** static int common_len (char ** arr) { - int i; - int j; + unsigned int i; + unsigned int j; char *shortest = arr[0]; - int shortlen = strlen(shortest); + unsigned int shortlen = strlen(shortest); for (i = 0; arr[i] != NULL; ++i) if (strlen(arr[i]) < shortlen) {