This commit is contained in:
Hunter 2024-09-09 10:07:14 +08:00 committed by GitHub
commit 7a0066fd5c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

2
ikcp.h
View File

@ -154,7 +154,7 @@ typedef struct IQUEUEHEAD iqueue_head;
#define IOFFSETOF(TYPE, MEMBER) ((size_t) &((TYPE *)0)->MEMBER)
#define ICONTAINEROF(ptr, type, member) ( \
(type*)( ((char*)((type*)ptr)) - IOFFSETOF(type, member)) )
(type*)( ((char*)(ptr)) - IOFFSETOF(type, member)) )
#define IQUEUE_ENTRY(ptr, type, member) ICONTAINEROF(ptr, type, member)