Skip to content

Commit a3ce43b

Browse files
committed
rename read_insn to read_insn_nocheck
1 parent 947e351 commit a3ce43b

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

lib/exec.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1411,7 +1411,7 @@ skip_expr(const uint8_t **pp, bool goto_else)
14111411
*p == FRAME_OP_IF || *p == FRAME_OP_TRY_TABLE);
14121412
}
14131413
while (true) {
1414-
uint32_t op = read_insn(&p);
1414+
uint32_t op = read_insn_nocheck(&p);
14151415
switch (op) {
14161416
case FRAME_OP_BLOCK:
14171417
case FRAME_OP_LOOP:

lib/expr_parser.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ void
2222
parse_expr(const uint8_t **pp, struct parse_expr_context *pctx)
2323
{
2424
const uint8_t *p = *pp;
25-
uint32_t op = read_insn(&p);
25+
uint32_t op = read_insn_nocheck(&p);
2626
switch (op) {
2727
case FRAME_OP_BLOCK:
2828
case FRAME_OP_LOOP:

lib/insn.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1064,7 +1064,7 @@ fetch_exec_next_insn(const uint8_t *p, struct cell *stack,
10641064
}
10651065

10661066
uint32_t
1067-
read_insn(const uint8_t **pp)
1067+
read_insn_nocheck(const uint8_t **pp)
10681068
{
10691069
const uint8_t *p = *pp;
10701070
struct context ctx;

lib/insn.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
#include <stddef.h>
22
#include <stdint.h>
33

4-
uint32_t read_insn(const uint8_t **pp);
4+
uint32_t read_insn_nocheck(const uint8_t **pp);

0 commit comments

Comments
 (0)