diff options
author | Takashi Kokubun <takashikkbn@gmail.com> | 2022-07-21 09:23:58 -0700 |
---|---|---|
committer | Takashi Kokubun <takashikkbn@gmail.com> | 2022-07-21 09:42:04 -0700 |
commit | 5b21e94bebed90180d8ff63dad03b8b948361089 (patch) | |
tree | f9f7196d84b51b7a3a8001658e4391a63b71c396 /compar.c | |
parent | 3ff53c8e04ecc91e0190de6d5950ecce2a2ea188 (diff) |
Expand tabs [ci skip]
[Misc #18891]
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/6094
Diffstat (limited to 'compar.c')
-rw-r--r-- | compar.c | 14 |
1 files changed, 7 insertions, 7 deletions
@@ -30,13 +30,13 @@ rb_cmperr(VALUE x, VALUE y) VALUE classname; if (SPECIAL_CONST_P(y) || BUILTIN_TYPE(y) == T_FLOAT) { - classname = rb_inspect(y); + classname = rb_inspect(y); } else { - classname = rb_obj_class(y); + classname = rb_obj_class(y); } rb_raise(rb_eArgError, "comparison of %"PRIsVALUE" with %"PRIsVALUE" failed", - rb_obj_class(x), classname); + rb_obj_class(x), classname); } static VALUE @@ -51,11 +51,11 @@ rb_invcmp(VALUE x, VALUE y) { VALUE invcmp = rb_exec_recursive(invcmp_recursive, x, y); if (invcmp == Qundef || NIL_P(invcmp)) { - return Qnil; + return Qnil; } else { - int result = -rb_cmpint(invcmp, x, y); - return INT2FIX(result); + int result = -rb_cmpint(invcmp, x, y); + return INT2FIX(result); } } @@ -229,7 +229,7 @@ cmp_clamp(int argc, VALUE *argv, VALUE x) } } if (!NIL_P(min) && !NIL_P(max) && cmpint(min, max) > 0) { - rb_raise(rb_eArgError, "min argument must be smaller than max argument"); + rb_raise(rb_eArgError, "min argument must be smaller than max argument"); } if (!NIL_P(min)) { |