Permalink
Browse files

* vm_exec.h: parenthesize macro arguments.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30638 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
  • Loading branch information...
1 parent 6df0210 commit 35dbe5056de5206bdc3eea36d8aa629368ebe2cb @akr akr committed Jan 23, 2011
Showing with 6 additions and 2 deletions.
  1. +4 −0 ChangeLog
  2. +2 −2 vm_exec.h
View
@@ -1,3 +1,7 @@
+Sun Jan 23 11:39:18 2011 Tanaka Akira <akr@fsij.org>
+
+ * vm_exec.h: parenthesize macro arguments.
+
Sun Jan 23 10:33:02 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
* template/fake.rb.in (ruby): suppress warnings.
View
@@ -20,8 +20,8 @@ typedef rb_iseq_t *ISEQ;
#ifdef COLLECT_USAGE_ANALYSIS
#define USAGE_ANALYSIS_INSN(insn) vm_analysis_insn(insn)
-#define USAGE_ANALYSIS_OPERAND(insn, n, op) vm_analysis_operand(insn, n, (VALUE)op)
-#define USAGE_ANALYSIS_REGISTER(reg, s) vm_analysis_register(reg, s)
+#define USAGE_ANALYSIS_OPERAND(insn, n, op) vm_analysis_operand((insn), (n), (VALUE)(op))
+#define USAGE_ANALYSIS_REGISTER(reg, s) vm_analysis_register((reg), (s))
#else
#define USAGE_ANALYSIS_INSN(insn) /* none */
#define USAGE_ANALYSIS_OPERAND(insn, n, op) /* none */

0 comments on commit 35dbe50

Please sign in to comment.