mirror of
https://github.com/dhewm/dhewm3-sdk.git
synced 2024-11-22 04:31:15 +00:00
Fix -Winvalid-offsetof warnings
This commit is contained in:
parent
f4f5d9c914
commit
a08e239e28
1 changed files with 1 additions and 1 deletions
|
@ -214,7 +214,7 @@ type *idBlockAlloc<type,blockSize>::Alloc( void ) {
|
||||||
|
|
||||||
template<class type, int blockSize>
|
template<class type, int blockSize>
|
||||||
void idBlockAlloc<type,blockSize>::Free( type *t ) {
|
void idBlockAlloc<type,blockSize>::Free( type *t ) {
|
||||||
element_t *element = (element_t *)( ( (unsigned char *) t ) - ( (int) &((element_t *)0)->t ) );
|
element_t *element = (element_t *)( intptr_t(t) - sizeof(intptr_t) );
|
||||||
element->next = free;
|
element->next = free;
|
||||||
free = element;
|
free = element;
|
||||||
active--;
|
active--;
|
||||||
|
|
Loading…
Reference in a new issue