wingo pushed a commit to branch master
in repository guile.
commit 2aa05ff3c489472f048501ad5db2a22b193982e1
Author: Andy Wingo <[email protected]>
AuthorDate: Thu Jul 30 14:12:26 2020 +0200
Update use of jit_begin_data API
* libguile/jit.c (compile_jtable): Pass computed jump table size.
---
libguile/jit.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libguile/jit.c b/libguile/jit.c
index 392f387..75dbe64 100644
--- a/libguile/jit.c
+++ b/libguile/jit.c
@@ -4368,7 +4368,7 @@ compile_jtable (scm_jit_state *j, uint32_t idx, uint32_t
len,
jit_jmpr (j->jit, T0);
/* Here's the table itself. */
- jit_begin_data (j->jit);
+ jit_begin_data (j->jit, sizeof(intptr_t) * len);
jit_align (j->jit, sizeof(intptr_t));
jit_patch_here (j->jit, table);
for (size_t i = 0; i + 1 < len; i++) {