SW: Replace void* with decltype(o) in TRAVERSE define.

Patch from Striker.

git-svn-id: https://svn.eduke32.com/eduke32@7507 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
hendricks266 2019-04-08 06:26:21 +00:00 committed by Christoph Oelckers
parent 78df29ce00
commit a60905524c

View file

@ -58,7 +58,7 @@ typedef
((LIST) nodep)->Next->Prev = ((LIST) nodep)->Prev)
#define TRAVERSE(l, o, n) ASSERT(((LIST)l)->Next && ((LIST)l)->Prev); for (o = (void*)(((LIST)l)->Next); \
#define TRAVERSE(l, o, n) ASSERT(((LIST)l)->Next && ((LIST)l)->Prev); for (o = (decltype(o))(((LIST)l)->Next); \
n = o->Next, (LIST) o != (LIST) l; \
o = n)