Skip to content

Commit

Permalink
list: fix offset calculation on win32.
Browse files Browse the repository at this point in the history
Signed-off-by: Phillip Whelan <[email protected]>
  • Loading branch information
pwhelan authored and edsiper committed Oct 7, 2022
1 parent 5cfe635 commit af84f24
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/cfl/cfl_list.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
#ifdef _WIN32
/* Windows */
#define cfl_container_of(address, type, field) ((type *)( \
(unsigned char)(address) - \
(unsigned char *)(address) - \
(intptr_t)(&((type *)0)->field)))
#else
/* Rest of the world */
Expand Down

0 comments on commit af84f24

Please sign in to comment.