summaryrefslogtreecommitdiffhomepage
path: root/src/numeric.c
diff options
context:
space:
mode:
authorJun Hiroe <[email protected]>2014-04-13 03:11:58 +0900
committerJun Hiroe <[email protected]>2014-04-13 03:11:58 +0900
commit70e93da724ad40361df0e3c2410a795ecd35dff6 (patch)
tree2c20f338a5d343be295168d14a992317655399c8 /src/numeric.c
parenta18f22e1b4c49c864ed00300053c01b10d799f85 (diff)
downloadmruby-70e93da724ad40361df0e3c2410a795ecd35dff6.tar.gz
mruby-70e93da724ad40361df0e3c2410a795ecd35dff6.zip
Fix indent in bit_coerce
Diffstat (limited to 'src/numeric.c')
-rw-r--r--src/numeric.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/numeric.c b/src/numeric.c
index f7ee3103d..de20b983e 100644
--- a/src/numeric.c
+++ b/src/numeric.c
@@ -897,13 +897,13 @@ fix_rev(mrb_state *mrb, mrb_value num)
static mrb_value
bit_coerce(mrb_state *mrb, mrb_value x)
{
- while (!mrb_fixnum_p(x)) {
- if (mrb_float_p(x)) {
- mrb_raise(mrb, E_TYPE_ERROR, "can't convert Float into Integer");
- }
- x = mrb_to_int(mrb, x);
+ while (!mrb_fixnum_p(x)) {
+ if (mrb_float_p(x)) {
+ mrb_raise(mrb, E_TYPE_ERROR, "can't convert Float into Integer");
}
- return x;
+ x = mrb_to_int(mrb, x);
+ }
+ return x;
}
/* 15.2.8.3.9 */