aboutsummaryrefslogtreecommitdiff
path: root/src/lexer.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lexer.c')
-rw-r--r--src/lexer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lexer.c b/src/lexer.c
index 4a71746..8b121b3 100644
--- a/src/lexer.c
+++ b/src/lexer.c
@@ -166,7 +166,7 @@ lexemes_soa_resz(struct lexemes_soa *soa)
/* Ensure that soa->strs is properly aligned */
pad = alignof(*soa->strs)
- ncap * sizeof(*soa->kinds) % alignof(*soa->strs);
- if (pad == 8)
+ if (pad == alignof(*soa->strs))
pad = 0;
newsz = ncap * LEXEMES_SOA_BLKSZ + pad;