1
0
Fork 0

Fix microrl compile error:

lib/helius_microrl/microrl.c:476:22: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare]
This commit is contained in:
Silver Kits 2016-11-21 10:26:55 +02:00
parent a4b86db84a
commit 6fa1c472b1
1 changed files with 3 additions and 3 deletions

View File

@ -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) {