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:
parent
b16a2aa938
commit
3bada9208a
1 changed files with 2 additions and 7 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue