Skip to content

Commit 5d97c14

Browse files
committed
FIx Ractor.main? to return true not 0
[Bug #20954]
1 parent 923f831 commit 5d97c14

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ractor.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -884,7 +884,7 @@ def self.main
884884
# return true if the current ractor is main ractor
885885
def self.main?
886886
__builtin_cexpr! %q{
887-
GET_VM()->ractor.main_ractor == rb_ec_ractor_ptr(ec)
887+
RBOOL(GET_VM()->ractor.main_ractor == rb_ec_ractor_ptr(ec))
888888
}
889889
end
890890

0 commit comments

Comments
 (0)