From 600d579e92b7789be4b32d132432e8a51c718055 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=A9mie=20Astor?= Date: Thu, 1 Jul 2021 17:57:27 +0200 Subject: [PATCH] :art: use next_bbq_pos (fix) --- include/vm.h | 2 +- src/vm/vm.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/vm.h b/include/vm.h index 471f4822..a21b68ec 100644 --- a/include/vm.h +++ b/include/vm.h @@ -140,5 +140,5 @@ ANN void handle(VM_Shred shred, const m_str effect); #define BBQ_POS_MAX 16777216 -void next_bbq_pos(const VM *vm); +ANN void next_bbq_pos(const VM *vm); #endif diff --git a/src/vm/vm.c b/src/vm/vm.c index 7ec9cbac..7c5e6846 100644 --- a/src/vm/vm.c +++ b/src/vm/vm.c @@ -1202,7 +1202,7 @@ vm_run(const VM *vm) { // lgtm [cpp/use-of-goto] } } -static inline next_bbq_pos(const VM *vm) { +ANN void next_bbq_pos(const VM *vm) { Driver *const di = vm->bbq; if(++di->pos == 16777216-1) { for(m_uint i = 0; i < vector_size(&vm->shreduler->shreds); i++) { -- 2.43.0