From: fennecdjay Date: Fri, 22 Jul 2022 12:54:54 +0000 (+0200) Subject: :art: more Machine stuff X-Git-Tag: nightly~264^2~81 X-Git-Url: http://10.10.0.4:5575/?a=commitdiff_plain;h=757ef279185c3b75aed321cd5ac35aafbcdb642f;p=gwion.git :art: more Machine stuff --- diff --git a/src/lib/shred.c b/src/lib/shred.c index e7d51842..d38fc909 100644 --- a/src/lib/shred.c +++ b/src/lib/shred.c @@ -70,7 +70,9 @@ static MFUN(vm_shred_is_running) { *(m_uint *)RETURN = ((m_int)s->tick->prev != -1 && (s->tick->prev || s->tick->next)) ? true : false; } -static MFUN(vm_shred_is_done) { *(m_uint *)RETURN = !ME(o) ? true : false; } +static MFUN(vm_shred_is_done) { + *(m_uint *)RETURN = (m_int)s->tick->prev == -1; +} static MFUN(shred_yield) { const VM_Shred s = ME(o);