1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Fixed a suspicious comparison

This commit is contained in:
Nobuyoshi Nakada 2020-12-13 13:12:18 +09:00
parent 97e6c28db4
commit 416e402cf3
No known key found for this signature in database
GPG key ID: 7CD2805BFA3770C6

View file

@ -888,7 +888,7 @@ ractor_select(rb_execution_context_t *ec, const VALUE *rs, int alen, VALUE yield
{ {
VM_ASSERT(cr->sync.wait.status == wait_none); VM_ASSERT(cr->sync.wait.status == wait_none);
cr->sync.wait.status = wait_status; cr->sync.wait.status = wait_status;
cr->sync.wait.wakeup_status == wakeup_none; cr->sync.wait.wakeup_status = wakeup_none;
} }
RACTOR_UNLOCK(cr); RACTOR_UNLOCK(cr);