Skip to content

Commit

Permalink
remove spaces after open parens
Browse files Browse the repository at this point in the history
  • Loading branch information
matz committed Jul 12, 2014
1 parent 02d4949 commit 61ce589
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion mrbgems/mruby-random/src/random.c
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ mrb_random_mt_srand(mrb_state *mrb, mt_state *t, mrb_value seed)
if (mrb_nil_p(seed)) {
seed = mrb_fixnum_value((mrb_int)(time(NULL) + mt_rand(t)));
if (mrb_fixnum(seed) < 0) {
seed = mrb_fixnum_value( 0 - mrb_fixnum(seed));
seed = mrb_fixnum_value(0 - mrb_fixnum(seed));
}
}

Expand Down
2 changes: 1 addition & 1 deletion mrbgems/mruby-sprintf/src/sprintf.c
Original file line number Diff line number Diff line change
Expand Up @@ -836,7 +836,7 @@ mrb_str_format(mrb_state *mrb, int argc, const mrb_value *argv, mrb_value fmt)

if (base == 2) {
org_v = v;
if ( v < 0 && !sign ) {
if (v < 0 && !sign) {
val = mrb_fix2binstr(mrb, mrb_fixnum_value(v), base);
dots = 1;
}
Expand Down
2 changes: 1 addition & 1 deletion src/numeric.c
Original file line number Diff line number Diff line change
Expand Up @@ -474,7 +474,7 @@ flo_infinite_p(mrb_state *mrb, mrb_value num)
mrb_float value = mrb_float(num);

if (isinf(value)) {
return mrb_fixnum_value( value < 0 ? -1 : 1 );
return mrb_fixnum_value(value < 0 ? -1 : 1);
}
return mrb_nil_value();
}
Expand Down

0 comments on commit 61ce589

Please sign in to comment.