Project

General

Profile

« Previous | Next » 

Revision c0af2a16

Added by nobu (Nobuyoshi Nakada) about 9 years ago

complex.c: optimize

  • complex.c (f_negative_p): use rb_num_negative_p instead of funcall.

  • complex.c (f_kind_of_p, f_numeric_p): cast down to int because
    rb_obj_is_kind_of is safe.

  • complex.c (f_signbit, f_tpositive_p): remove f_boolcast.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56776 b2dd03c8-39d4-4d8f-98ff-823fe69b080e