ruby-changes:53614
From: shyouhei <ko1@a...>
Date: Tue, 20 Nov 2018 14:58:18 +0900 (JST)
Subject: [ruby-changes:53614] shyouhei:r65830 (trunk): vm_insnhelper.c: fix indent [ci skip]
shyouhei 2018-11-20 14:58:12 +0900 (Tue, 20 Nov 2018) New Revision: 65830 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=65830 Log: vm_insnhelper.c: fix indent [ci skip] Modified files: trunk/vm_insnhelper.c Index: vm_insnhelper.c =================================================================== --- vm_insnhelper.c (revision 65829) +++ vm_insnhelper.c (revision 65830) @@ -3766,27 +3766,27 @@ static VALUE https://github.com/ruby/ruby/blob/trunk/vm_insnhelper.c#L3766 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; } } -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/