bignum.c: redundant expression

* bignum.c (LSHIFTX): remove redundant never-true expression.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41611 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2013-06-25 02:39:37 +00:00
parent b935dd3029
commit cb2cfdd937
2 changed files with 5 additions and 1 deletions

View File

@ -1,3 +1,7 @@
Tue Jun 25 11:39:34 2013 Nobuyoshi Nakada <nobu@ruby-lang.org>
* bignum.c (LSHIFTX): remove redundant never-true expression.
Tue Jun 25 00:55:54 2013 Masaya Tarui <tarui@ruby-lang.org>
* gc.c (typedef struct rb_objspace): Change members for monitor objects.

View File

@ -39,7 +39,7 @@ static VALUE big_three = Qnil;
# define HOST_BIGENDIAN_P 0
#endif
#define ALIGNOF(type) ((int)offsetof(struct { char f1; type f2; }, f2))
#define LSHIFTX(d, n) (sizeof(d) * CHAR_BIT <= (n) ? 0 : ((d) << (sizeof(d) * CHAR_BIT <= (n) ? 0 : (n))))
#define LSHIFTX(d, n) (sizeof(d) * CHAR_BIT <= (n) ? 0 : ((d) << (n)))
#define CLEAR_LOWBITS(d, numbits) ((d) & LSHIFTX(~((d)*0), (numbits)))
#define FILL_LOWBITS(d, numbits) ((d) | (LSHIFTX(((d)*0+1), (numbits))-1))