diff options
Diffstat (limited to 'src/compile/compile.c')
-rw-r--r-- | src/compile/compile.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/compile/compile.c b/src/compile/compile.c index d2fd3dc..ef3efcd 100644 --- a/src/compile/compile.c +++ b/src/compile/compile.c @@ -16,12 +16,12 @@ static void free_arena(void *arena, size_t size) static size_t grploc_count(struct ejit_func *f) { - return f->gpr >= jit_v_num() ? 0 : f->gpr - jit_v_num(); + return f->gpr < jit_v_num() ? 0 : f->gpr - jit_v_num(); } static size_t frploc_count(struct ejit_func *f) { - return f->fpr >= jit_vf_num() ? 0 : f->fpr - jit_vf_num(); + return f->fpr < jit_vf_num() ? 0 : f->fpr - jit_vf_num(); } static size_t stack_size(struct ejit_func *f) |