Permalink
Browse files

linked_hashtbl: fixed -Wcast-align warning

  • Loading branch information...
1 parent bb96ad8 commit e5b7ab29cbe7340a6639c6c9538f6b6a9d328eb2 @andymcd andymcd committed Mar 25, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 linked_hashtbl.c
View
@@ -61,7 +61,7 @@
#endif
#define LIST_ENTRY(PTR, TYPE, FIELD) \
- (TYPE *)(((char *)PTR) - offsetof(TYPE, FIELD))
+ (TYPE *)(((TYPE *)PTR) - offsetof(TYPE, FIELD))
struct l_hashtbl_list_head {
struct l_hashtbl_list_head *next, *prev;

0 comments on commit e5b7ab2

Please sign in to comment.