ihash.c: cleanup warning use of void* with pointer arithmetic

Use of (void*) with pointer arithmetic warning removal.

But more so as it is in a macro (all be it local to file) which will
take on the form of the type passed as argument when the 'offset' looks
to be always be specified in bytes.
This commit is contained in:
Darryl L. Miles 2025-01-06 16:21:22 +00:00
parent 60c64db33a
commit 7e9d4cc15e
1 changed files with 2 additions and 2 deletions

View File

@ -40,7 +40,7 @@
* *
*/ */
#define DEREF(ptr,offset) ((ptr)+(offset)) #define DEREF(ptr,offset) (((char*)ptr)+(offset))
static char rcsid[] = "$Header$"; static char rcsid[] = "$Header$";
#include <string.h> #include <string.h>
@ -178,7 +178,7 @@ void IHashDelete(IHashTable *table, void *entry)
for(pp = &table->iht_table[bucket]; for(pp = &table->iht_table[bucket];
(*pp) && (*pp) != entry; (*pp) && (*pp) != entry;
pp = DEREF((*pp),nextOffset)); pp = (void**) DEREF((*pp),nextOffset));
ASSERT(*pp,"IHashDelete"); ASSERT(*pp,"IHashDelete");
(*pp) = * (void **) DEREF(entry,nextOffset); (*pp) = * (void **) DEREF(entry,nextOffset);