summaryrefslogtreecommitdiffstats
path: root/src/list.h
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2013-05-19 19:25:43 +0200
committerChristophe Grenier <grenier@cgsecurity.org>2013-05-19 19:25:43 +0200
commit2542701f2e675bb364d8c3f04ffe6bed71f0ce1a (patch)
tree70b094ed54acedb72ce6f207e385a71278fbae79 /src/list.h
parentbf83ac26623fc2743ec041b8f502636074ffe69c (diff)
Fix compilation when using mingw c++
Diffstat (limited to 'src/list.h')
-rw-r--r--src/list.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/list.h b/src/list.h
index 392adc3..60637d3 100644
--- a/src/list.h
+++ b/src/list.h
@@ -229,10 +229,10 @@ static inline void td_list_splice_init(struct td_list_head *list,
* @member: the name of the td_list_struct within the struct.
*/
#define td_list_entry(ptr, type, member) \
- ((type *)((char *)(ptr)-(unsigned long)(&((type *)0)->member)))
+ ((type *)((char *)(ptr)-(unsigned long long)(&((type *)0)->member)))
#define td_list_entry_const(ptr, type, member) \
- ((type *)((const char *)(ptr)-(unsigned long)(&((type *)0)->member)))
+ ((type *)((const char *)(ptr)-(unsigned long long)(&((type *)0)->member)))
/**
* __td_list_for_each - iterate over a list