summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-03-25 12:56:34 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-03-25 12:56:34 +0000
commit96216554d2de68c90c53068a87d88e8f25207d74 (patch)
treec74ba137d9027aa42542e804b53c625ef1a0dd7c /ext
parent8c6a73ded362b2bc09d00c8e2e3f1cfd8c070e3c (diff)
* ext/sdbm/init.c: parenthesize macro arguments.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31180 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext')
-rw-r--r--ext/sdbm/init.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/ext/sdbm/init.c b/ext/sdbm/init.c
index 6a02e1e..7ba59c4 100644
--- a/ext/sdbm/init.c
+++ b/ext/sdbm/init.c
@@ -29,13 +29,13 @@ closed_sdbm()
}
#define GetDBM(obj, dbmp) {\
- Data_Get_Struct(obj, struct dbmdata, dbmp);\
- if (dbmp == 0) closed_sdbm();\
- if (dbmp->di_dbm == 0) closed_sdbm();\
+ Data_Get_Struct((obj), struct dbmdata, (dbmp));\
+ if ((dbmp) == 0) closed_sdbm();\
+ if ((dbmp)->di_dbm == 0) closed_sdbm();\
}
#define GetDBM2(obj, data, dbm) {\
- GetDBM(obj, data);\
+ GetDBM((obj), (data));\
(dbm) = dbmp->di_dbm;\
}