aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGavin Howard <gavin@yzena.com>2021-08-08 19:10:42 -0600
committerGavin Howard <gavin@yzena.com>2021-08-08 19:10:42 -0600
commit7068ffe8bc0dbdcd4b37c7fabb45ee10f922d36b (patch)
tree2590d6918b481b2dbdcacebd073f2364f5e6d9bd
parentf7c32654fa3c8e699012dc17091fa0af493a9c84 (diff)
downloadbc-7068ffe8bc0dbdcd4b37c7fabb45ee10f922d36b.tar.gz
Fix a scan-build error
Signed-off-by: Gavin Howard <gavin@yzena.com>
-rw-r--r--src/program.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/program.c b/src/program.c
index eb7e6b45..c943db82 100644
--- a/src/program.c
+++ b/src/program.c
@@ -2645,14 +2645,15 @@ void bc_program_exec(BcProgram *p) {
func = (BcFunc*) bc_vec_item(&p->fns, ip->func);
code = func->code.v;
-#ifndef NDEBUG
- jmp_bufs_len = vm.jmp_bufs.len;
-#endif // NDEBUG
-
// Ensure the pointers are correct.
bc_program_setVecs(p, func);
#if !BC_HAS_COMPUTED_GOTO
+
+#ifndef NDEBUG
+ jmp_bufs_len = vm.jmp_bufs.len;
+#endif // NDEBUG
+
// This loop is the heart of the execution engine. It *is* the engine. For
// computed goto, it is ignored.
while (ip->idx < func->code.len)