Skip to content

Commit

Permalink
Expand tabs [ci skip]
Browse files Browse the repository at this point in the history
[Misc #18891]
  • Loading branch information
k0kubun committed Jul 21, 2022
1 parent 3ff53c8 commit 5b21e94
Show file tree
Hide file tree
Showing 158 changed files with 39,093 additions and 38,059 deletions.
1,876 changes: 938 additions & 938 deletions array.c

Large diffs are not rendered by default.

1,110 changes: 555 additions & 555 deletions bignum.c

Large diffs are not rendered by default.

530 changes: 265 additions & 265 deletions class.c

Large diffs are not rendered by default.

14 changes: 7 additions & 7 deletions compar.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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);
}
}

Expand Down Expand Up @@ -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)) {
Expand Down
Loading

0 comments on commit 5b21e94

Please sign in to comment.