summaryrefslogtreecommitdiff
path: root/execute.c
diff options
context:
space:
mode:
authorDavid Tolnay <dtolnay@gmail.com>2015-07-25 08:53:28 -0700
committerDavid Tolnay <dtolnay@gmail.com>2015-07-26 16:19:20 -0700
commit21309bc6d7c783c5614575603a197bfac35b5dab (patch)
tree8df62183439e7f99693598ff6f693e719bd258a5 /execute.c
parent8295baf284785b17829540cbb7d13383f3cb769d (diff)
downloadjq-21309bc6d7c783c5614575603a197bfac35b5dab.tar.gz
Error on bytecodes longer than 0xFFFF (fix #269)
This lets us use uint16_t for the program counter. JVM languages have the same limit on method size so it is a reasonable limit.
Diffstat (limited to 'execute.c')
-rw-r--r--execute.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/execute.c b/execute.c
index 9f3b549..6a94a44 100644
--- a/execute.c
+++ b/execute.c
@@ -1088,7 +1088,7 @@ int jq_compile_args(jq_state *jq, const char* str, jv args) {
nerrors = builtins_bind(jq, &program);
if (nerrors == 0) {
- nerrors = block_compile(program, &jq->bc);
+ nerrors = block_compile(program, &jq->bc, locations);
}
}
if (nerrors)