src/hash.c: misc cleanup for compiler warnings
hash.c:714:36: warning: comparison of integers of different signs: 'uint32_t' (aka 'unsigned int') and 'int' [-Wsign-compare] (... and 1 more of the same)
This commit is contained in:
parent
85f46bb59e
commit
e09aeac9ed
1 changed files with 2 additions and 2 deletions
|
@ -711,7 +711,7 @@ find_cli_connid_hash(int connid)
|
|||
RB_DLINK_FOREACH(ptr, clientbyconnidTable[hashv].head)
|
||||
{
|
||||
target_p = ptr->data;
|
||||
if(target_p->localClient->connid == connid)
|
||||
if(target_p->localClient->connid == (uint32_t)connid)
|
||||
return target_p;
|
||||
}
|
||||
|
||||
|
@ -719,7 +719,7 @@ find_cli_connid_hash(int connid)
|
|||
RB_DLINK_FOREACH(ptr, clientbyzconnidTable[hashv].head)
|
||||
{
|
||||
target_p = ptr->data;
|
||||
if(target_p->localClient->zconnid == connid)
|
||||
if(target_p->localClient->zconnid == (uint32_t)connid)
|
||||
return target_p;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue