Use unsigned variable for size and index
rulesSize is passed from unsigned variable numerusRulesLength, so don't bring sign bit into equation; array index variable i also made unsigned. Change-Id: I0cb4e8483272c1e60339298149fb118215aa2183 Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@nokia.com>bb10
parent
f1b2f1acd1
commit
be4554d934
|
|
@ -130,7 +130,7 @@ static uint elfHash(const char *name)
|
|||
return hash;
|
||||
}
|
||||
|
||||
static int numerusHelper(int n, const uchar *rules, int rulesSize)
|
||||
static int numerusHelper(int n, const uchar *rules, uint rulesSize)
|
||||
{
|
||||
#define CHECK_RANGE \
|
||||
do { \
|
||||
|
|
@ -139,7 +139,7 @@ static int numerusHelper(int n, const uchar *rules, int rulesSize)
|
|||
} while (0)
|
||||
|
||||
int result = 0;
|
||||
int i = 0;
|
||||
uint i = 0;
|
||||
|
||||
if (rulesSize == 0)
|
||||
return 0;
|
||||
|
|
|
|||
Loading…
Reference in New Issue