libnccs: Fix casts between integers and pointers
This commit is contained in:
parent
ce3e7ac57d
commit
becc382101
|
@ -97,7 +97,7 @@ METHOD(imc_t, add_id, void,
|
|||
void *pointer;
|
||||
|
||||
/* store the scalar value in the pointer */
|
||||
pointer = (void*)id;
|
||||
pointer = (void*)(uintptr_t)id;
|
||||
this->additional_ids->insert_last(this->additional_ids, pointer);
|
||||
}
|
||||
|
||||
|
@ -126,7 +126,7 @@ METHOD(imc_t, has_id, bool,
|
|||
while (enumerator->enumerate(enumerator, &pointer))
|
||||
{
|
||||
/* interpret pointer as scalar value */
|
||||
additional_id = (TNC_UInt32)pointer;
|
||||
additional_id = (uintptr_t)pointer;
|
||||
|
||||
if (id == additional_id)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue