From 9a2555d8840c5955631ec366d30c53511a313633 Mon Sep 17 00:00:00 2001 From: Brad Nelson Date: Sun, 10 Jul 2022 18:55:21 -0700 Subject: [PATCH] Fix miscounted initializer. --- common/interp.h | 2 +- common/opcodes.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/common/interp.h b/common/interp.h index a63b14f..84b0aad 100644 --- a/common/interp.h +++ b/common/interp.h @@ -25,7 +25,7 @@ static cell_t *forth_run(cell_t *init_rp) { EXTRA_OPCODE_LIST OPCODE_LIST #undef XV - 0, 0, 0, + 0, 0, 0, 0, 0, }; if (!init_rp) { diff --git a/common/opcodes.h b/common/opcodes.h index 8f36648..e57b038 100644 --- a/common/opcodes.h +++ b/common/opcodes.h @@ -71,7 +71,7 @@ typedef struct { uint8_t flags, name_length; uint16_t vocabulary; }; - cell_t multi; + cell_t multi; // Forces cell alignment throughout. }; const void *code; } BUILTIN_WORD;