Skip to content

Commit

Permalink
fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
i-evi committed Dec 14, 2020
1 parent 885b254 commit 39ccc85
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/util_list.h
Original file line number Diff line number Diff line change
Expand Up @@ -69,18 +69,20 @@ struct list {
char *name; /* name of LIST */
byte *mem; /* memory pool */
byte **index; /* index table */
void *_;
uint length; /* length of memory pool */
uint key; /* key of shared mem */
uint counter; /* record counter */
uint blen; /* length of a record */
uint scale; /* scale */
union {
union {
byte flag; /* list's mode flag */
uint _placeholder;
};
};
};

#define LIST_INFO_LEN (sizeof(struct list) - sizeof(void*) * 3)
#define LIST_INFO_LEN (sizeof(struct list) - \
sizeof(struct { void *_[4]; }))
#define LIST_INFO_OFFSET (sizeof(struct list) - LIST_INFO_LEN)

#define LIST_FLAG_DEFAULT 0x00
Expand Down

0 comments on commit 39ccc85

Please sign in to comment.