mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* configure.in (RSHIFT): parenthesize the argument of cast instead
of the result. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26949 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
b215b9742e
commit
acd2d29f2e
2 changed files with 7 additions and 2 deletions
|
@ -1,3 +1,8 @@
|
|||
Tue Mar 16 14:03:24 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* configure.in (RSHIFT): parenthesize the argument of cast instead
|
||||
of the result.
|
||||
|
||||
Tue Mar 16 11:23:42 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* file.c (file_expand_path): ignore dname if it has different
|
||||
|
|
|
@ -1349,9 +1349,9 @@ AC_CACHE_CHECK(whether right shift preserve sign bit, rb_cv_rshift_sign,
|
|||
rb_cv_rshift_sign=yes,
|
||||
rb_cv_rshift_sign=no)])
|
||||
if test "$rb_cv_rshift_sign" = yes; then
|
||||
AC_DEFINE(RSHIFT(x,y), ((x)>>((int)y)))
|
||||
AC_DEFINE(RSHIFT(x,y), ((x)>>(int)(y)))
|
||||
else
|
||||
AC_DEFINE(RSHIFT(x,y), (((x)<0) ? ~((~(x))>>(y)) : (x)>>(y)))
|
||||
AC_DEFINE(RSHIFT(x,y), (((x)<0) ? ~((~(x))>>(int)(y)) : (x)>>(int)(y)))
|
||||
fi
|
||||
|
||||
test "$rb_cv_fcnt" = "not found" && rb_cv_fcnt="not found (OK if using GNU libc)"
|
||||
|
|
Loading…
Reference in a new issue