FIx Ractor.main? to return true not 0

[Bug #20954]
This commit is contained in:
Jean Boussier 2024-12-16 00:31:49 +01:00
parent 923f831804
commit 5d97c14fec
Notes: git 2024-12-16 07:38:14 +00:00

View File

@ -884,7 +884,7 @@ class Ractor
# return true if the current ractor is main ractor
def self.main?
__builtin_cexpr! %q{
GET_VM()->ractor.main_ractor == rb_ec_ractor_ptr(ec)
RBOOL(GET_VM()->ractor.main_ractor == rb_ec_ractor_ptr(ec))
}
end