From: Jérémie Astor Date: Thu, 1 Jul 2021 15:57:27 +0000 (+0200) Subject: :art: use next_bbq_pos (fix) X-Git-Tag: nightly~558 X-Git-Url: http://10.10.0.4:5575/?a=commitdiff_plain;h=600d579e92b7789be4b32d132432e8a51c718055;p=gwion.git :art: use next_bbq_pos (fix) --- 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++) {