From 606c6ef2938e1c885317823e033827b4ff3420c7 Mon Sep 17 00:00:00 2001 From: Elias Fleckenstein Date: Mon, 16 May 2022 11:59:22 +0200 Subject: [PATCH] Fix obi-wan problem --- closure.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/closure.c b/closure.c index 9487716..dd083c2 100644 --- a/closure.c +++ b/closure.c @@ -29,7 +29,7 @@ void *closure_create(void *self, ClosureParam *param, size_t num) Closure *block = mmap(NULL, size, PROT_WRITE | PROT_READ, MAP_PRIVATE | MAP_ANONYMOUS, 0, 0); for (size_t i = 0; i < num; i++) { - if (param[i].arg > 6) + if (param[i].arg >= 6) abort(); // TODO block[i].opcode_0 = 0xb848; -- 2.44.0