ruby-changes:18582
From: akr <ko1@a...>
Date: Thu, 20 Jan 2011 06:03:59 +0900 (JST)
Subject: [ruby-changes:18582] Ruby:r30606 (trunk): * method.h: parenthesize macro arguments.
akr 2011-01-20 06:03:36 +0900 (Thu, 20 Jan 2011) New Revision: 30606 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=30606 Log: * method.h: parenthesize macro arguments. Modified files: trunk/ChangeLog trunk/method.h Index: method.h =================================================================== --- method.h (revision 30605) +++ method.h (revision 30606) @@ -26,8 +26,8 @@ } rb_method_flag_t; #define NOEX_SAFE(n) ((int)((n) >> 8) & 0x0F) -#define NOEX_WITH(n, s) ((s << 8) | (n) | (ruby_running ? 0 : NOEX_BASIC)) -#define NOEX_WITH_SAFE(n) NOEX_WITH(n, rb_safe_level()) +#define NOEX_WITH(n, s) (((s) << 8) | (n) | (ruby_running ? 0 : NOEX_BASIC)) +#define NOEX_WITH_SAFE(n) NOEX_WITH((n), rb_safe_level()) /* method data type */ Index: ChangeLog =================================================================== --- ChangeLog (revision 30605) +++ ChangeLog (revision 30606) @@ -1,3 +1,7 @@ +Thu Jan 20 06:03:17 2011 Tanaka Akira <akr@f...> + + * method.h: parenthesize macro arguments. + Wed Jan 19 13:16:05 2011 Eric Hodel <drbrain@s...> * lib/rubygems/commands/sources_command.rb: Finish removing code, -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/