Skip to content

Commit

Permalink
Update code comment
Browse files Browse the repository at this point in the history
Signed-off-by: Harkrishn Patro <[email protected]>
  • Loading branch information
hpatro committed Jun 27, 2024
1 parent 029917f commit 3c7d958
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/dict.c
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ typedef struct {
unsigned char key_buf[]; /* buffer to embed the key. */
} embeddedDictEntry;

/* Validation and helper for `embeddedDictEntry` */
static_assert(sizeof(embeddedDictEntry) == 24, "unexpected total size of embeddedDictEntry");
static_assert(offsetof(embeddedDictEntry, v) == 0, "unexpected field offset");
static_assert(offsetof(embeddedDictEntry, next) == 8, "unexpected field offset");
Expand All @@ -107,8 +108,6 @@ typedef struct {
dictEntry *next;
} dictEntryNoValue;

/* Helper and validation for `embeddedDictEntry` */

/* -------------------------- private prototypes ---------------------------- */

static void _dictExpandIfNeeded(dict *d);
Expand Down

0 comments on commit 3c7d958

Please sign in to comment.