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

Simplify maybe_special_const_class_p

This commit is contained in:
Takashi Kokubun 2020-05-17 23:42:24 -07:00
parent b16a2aa938
commit 3bada9208a
No known key found for this signature in database
GPG key ID: 6FFC433B12EE23DD

View file

@ -118,17 +118,12 @@ fastpath_applied_iseq_p(const CALL_INFO ci, const CALL_CACHE cc, const rb_iseq_t
static bool
maybe_special_const_class_p(const VALUE klass)
{
if (klass == rb_cFalseClass
return klass == rb_cFalseClass
|| klass == rb_cNilClass
|| klass == rb_cTrueClass
|| klass == rb_cInteger
|| klass == rb_cSymbol
|| klass == rb_cFloat) {
return true;
}
else {
return false;
}
|| klass == rb_cFloat;
}
static int