From 443f6c2c434efc7485bcb2b5f886f74770d28871 Mon Sep 17 00:00:00 2001 From: Sean McBride Date: Tue, 7 Jun 2022 14:09:17 -0400 Subject: [PATCH] fix: reorder map_node to improve alignment --- runtime/include/map.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/runtime/include/map.h b/runtime/include/map.h index 0bad1db..93ad65f 100644 --- a/runtime/include/map.h +++ b/runtime/include/map.h @@ -16,12 +16,12 @@ #define MAP_HASH jenkins_hash struct map_node { - uint32_t hash; + struct map_node *next; uint8_t *key; - uint32_t key_len; uint8_t *value; + uint32_t key_len; uint32_t value_len; - struct map_node *next; + uint32_t hash; }; struct map {