aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/c8asm/assembler.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/c8asm/assembler.c b/src/c8asm/assembler.c
index daafc11..9aa356c 100644
--- a/src/c8asm/assembler.c
+++ b/src/c8asm/assembler.c
@@ -230,6 +230,9 @@ assemble(FILE *stream, struct ast ast)
}
}
+ if (pad)
+ putchar(0);
+
locals.len = 0;
#undef PUT