diff options
author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 1998-02-03 10:02:57 +0000 |
---|---|---|
committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 1998-02-03 10:02:57 +0000 |
commit | 01bb9da7acfeb868eeec4fc20061c57d85b26cf8 (patch) | |
tree | 9b0ef258786fb82863ed752fc410405f86ac2068 /numeric.c | |
parent | de0e5e35ae39a03879d8a954dd6b75654c173cd7 (diff) |
*** empty log message ***
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/v1_1r@63 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'numeric.c')
-rw-r--r-- | numeric.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -824,7 +824,7 @@ fix_rshift(x, y) long i, val; i = NUM2INT(y); - if (y < 32) { + if (i < sizeof(INT) * 8) { val = RSHIFT(FIX2INT(x), i); return INT2FIX(val); } |