MRI: some minor optimizations
This commit is contained in:
parent
cb39c2f345
commit
f06769b434
6 changed files with 24 additions and 22 deletions
|
@ -38,7 +38,7 @@ RB_METHOD(flashableFlash)
|
|||
|
||||
rb_get_args(argc, argv, "oi", &colorObj, &duration RB_ARG_END);
|
||||
|
||||
if (rb_type(colorObj) == RUBY_T_NIL)
|
||||
if (NIL_P(rb_type(colorObj)))
|
||||
{
|
||||
f->flash(0, duration);
|
||||
return Qnil;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue