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:
parent
a4b86db84a
commit
6fa1c472b1
@ -467,10 +467,10 @@ static void microrl_backspace (microrl_t * pThis)
|
|||||||
//*****************************************************************************
|
//*****************************************************************************
|
||||||
static int common_len (char ** arr)
|
static int common_len (char ** arr)
|
||||||
{
|
{
|
||||||
int i;
|
unsigned int i;
|
||||||
int j;
|
unsigned int j;
|
||||||
char *shortest = arr[0];
|
char *shortest = arr[0];
|
||||||
int shortlen = strlen(shortest);
|
unsigned int shortlen = strlen(shortest);
|
||||||
|
|
||||||
for (i = 0; arr[i] != NULL; ++i)
|
for (i = 0; arr[i] != NULL; ++i)
|
||||||
if (strlen(arr[i]) < shortlen) {
|
if (strlen(arr[i]) < shortlen) {
|
||||||
|
Loading…
Reference in New Issue
Block a user