summaryrefslogtreecommitdiff
path: root/debug.c
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-12-07 12:16:10 (GMT)
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-12-07 12:16:10 (GMT)
commit766d38e65933951039bb395250db5c5a2232b81a (patch)
treeb8f7c80ceb4e07c3d5a930609b4eb5733cedcfa5 /debug.c
parent9ce40aacef33a9bcb7c565f2fc0bfd493bf73088 (diff)
* debug.c: parenthesize macro arguments.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30114 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'debug.c')
-rw-r--r--debug.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/debug.c b/debug.c
index 4959f92..dcc710b 100644
--- a/debug.c
+++ b/debug.c
@@ -141,7 +141,7 @@ set_debug_option(const char *str, int len, void *arg)
{
#define SET_WHEN(name, var) do { \
if (len == sizeof(name) - 1 && \
- strncmp(str, name, len) == 0) { \
+ strncmp(str, (name), len) == 0) { \
extern int var; \
var = 1; \
return; \