mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* configure.in (RSHIFT): add parenthesis to supress warning.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26769 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
785f417270
commit
d5a16d80be
2 changed files with 6 additions and 2 deletions
|
@ -1,3 +1,7 @@
|
|||
Fri Feb 26 21:29:48 2010 Tanaka Akira <akr@fsij.org>
|
||||
|
||||
* configure.in (RSHIFT): add parenthesis to supress warning.
|
||||
|
||||
Fri Feb 26 20:51:47 2010 Yusuke Endoh <mame@tsg.ne.jp>
|
||||
|
||||
* ext/socket/raddrinfo.c, ext/socket/udpsocket.c: avoid illegal cast
|
||||
|
|
|
@ -1341,9 +1341,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))>>(y)) : (x)>>(y)))
|
||||
fi
|
||||
|
||||
AC_MSG_CHECKING(read count field in FILE structures)
|
||||
|
|
Loading…
Add table
Reference in a new issue