mirror of
https://github.com/sogou/workflow.git
synced 2026-02-08 01:33:17 +08:00
Update rb_entry.
This commit is contained in:
@@ -115,7 +115,7 @@ struct rb_root
|
||||
|
||||
#define RB_ROOT (struct rb_root){ (struct rb_node *)0, }
|
||||
#define rb_entry(ptr, type, member) \
|
||||
((type *)((char *)(ptr) - offsetof(type, member)))
|
||||
((type *)((char *)(ptr)-(size_t)(&((type *)0)->member)))
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C"
|
||||
|
||||
Reference in New Issue
Block a user