Skip to content

Commit

Permalink
* method.h: parenthesize macro arguments.
Browse files Browse the repository at this point in the history
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30606 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
  • Loading branch information
akr committed Jan 19, 2011
1 parent 4993a1a commit 63d5d7f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
Thu Jan 20 06:03:17 2011 Tanaka Akira <[email protected]>

* method.h: parenthesize macro arguments.

Wed Jan 19 13:16:05 2011 Eric Hodel <[email protected]>

* lib/rubygems/commands/sources_command.rb: Finish removing code,
Expand Down
4 changes: 2 additions & 2 deletions method.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ typedef enum {
} 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 */

Expand Down

0 comments on commit 63d5d7f

Please sign in to comment.