summaryrefslogtreecommitdiff
path: root/vm_insnhelper.c
diff options
context:
space:
mode:
authorshyouhei <shyouhei@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-11-20 05:58:12 +0000
committershyouhei <shyouhei@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-11-20 05:58:12 +0000
commitb3b827664ede3ec1be026325efda00937fc8dfad (patch)
treef5886a8dea062ae85caac06dc070c507ab4e3e19 /vm_insnhelper.c
parent34f3f916e6c99fe5d21b1e82339a35c45fb937ff (diff)
vm_insnhelper.c: fix indent [ci skip]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@65830 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'vm_insnhelper.c')
-rw-r--r--vm_insnhelper.c42
1 files changed, 21 insertions, 21 deletions
diff --git a/vm_insnhelper.c b/vm_insnhelper.c
index 04b085571b..39f8ad1cd8 100644
--- a/vm_insnhelper.c
+++ b/vm_insnhelper.c
@@ -3766,27 +3766,27 @@ static VALUE
fix_succ(VALUE x)
{
switch (x) {
- case ~0UL:
- /* 0xFFFF_FFFF == INT2FIX(-1)
- * `-1.succ` is of course 0. */
- return INT2FIX(0);
- case RSHIFT(~0UL, 1):
- /* 0x7FFF_FFFF == LONG2FIX(0x3FFF_FFFF)
- * 0x3FFF_FFFF + 1 == 0x4000_0000, which is a Bignum. */
- return rb_uint2big(1UL << (SIZEOF_LONG * CHAR_BIT - 2));
- default:
- /* LONG2FIX(FIX2LONG(x)+FIX2LONG(y))
- * == ((lx*2+1)/2 + (ly*2+1)/2)*2+1
- * == lx*2 + ly*2 + 1
- * == (lx*2+1) + (ly*2+1) - 1
- * == x + y - 1
- *
- * Here, if we put y := INT2FIX(1):
- *
- * == x + INT2FIX(1) - 1
- * == x + 2 .
- */
- return x + 2;
+ case ~0UL:
+ /* 0xFFFF_FFFF == INT2FIX(-1)
+ * `-1.succ` is of course 0. */
+ return INT2FIX(0);
+ case RSHIFT(~0UL, 1):
+ /* 0x7FFF_FFFF == LONG2FIX(0x3FFF_FFFF)
+ * 0x3FFF_FFFF + 1 == 0x4000_0000, which is a Bignum. */
+ return rb_uint2big(1UL << (SIZEOF_LONG * CHAR_BIT - 2));
+ default:
+ /* LONG2FIX(FIX2LONG(x)+FIX2LONG(y))
+ * == ((lx*2+1)/2 + (ly*2+1)/2)*2+1
+ * == lx*2 + ly*2 + 1
+ * == (lx*2+1) + (ly*2+1) - 1
+ * == x + y - 1
+ *
+ * Here, if we put y := INT2FIX(1):
+ *
+ * == x + INT2FIX(1) - 1
+ * == x + 2 .
+ */
+ return x + 2;
}
}