ruby-changes:15073
From: nobu <ko1@a...>
Date: Tue, 16 Mar 2010 14:03:45 +0900 (JST)
Subject: [ruby-changes:15073] Ruby:r26949 (trunk): * configure.in (RSHIFT): parenthesize the argument of cast instead
nobu 2010-03-16 14:03:30 +0900 (Tue, 16 Mar 2010) New Revision: 26949 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=26949 Log: * configure.in (RSHIFT): parenthesize the argument of cast instead of the result. Modified files: trunk/ChangeLog trunk/configure.in Index: configure.in =================================================================== --- configure.in (revision 26948) +++ configure.in (revision 26949) @@ -1349,9 +1349,9 @@ 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)" Index: ChangeLog =================================================================== --- ChangeLog (revision 26948) +++ ChangeLog (revision 26949) @@ -1,3 +1,8 @@ +Tue Mar 16 14:03:24 2010 Nobuyoshi Nakada <nobu@r...> + + * configure.in (RSHIFT): parenthesize the argument of cast instead + of the result. + Tue Mar 16 11:23:42 2010 Nobuyoshi Nakada <nobu@r...> * file.c (file_expand_path): ignore dname if it has different -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/