libnccs: Fix casts between integers and pointers

This commit is contained in:
Martin Willi 2014-01-09 15:00:09 +01:00
parent ce3e7ac57d
commit becc382101
1 changed files with 2 additions and 2 deletions

View File

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