summaryrefslogtreecommitdiff
path: root/ext/dbm
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-02-06 02:29:49 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-02-06 02:29:49 +0000
commitadfcc591a80fadcee5be9309708fc17fc992bf04 (patch)
tree6394cb70e912c4a7db321d928398b72da81e0310 /ext/dbm
parent0efad539ed7a3c4c3f234aed3702a3a76d18e785 (diff)
* ext/dbm/dbm.c: parenthesize macro arguments.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30802 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/dbm')
-rw-r--r--ext/dbm/dbm.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/ext/dbm/dbm.c b/ext/dbm/dbm.c
index cae9284..43f52cc 100644
--- a/ext/dbm/dbm.c
+++ b/ext/dbm/dbm.c
@@ -37,13 +37,13 @@ closed_dbm(void)
}
#define GetDBM(obj, dbmp) {\
- Data_Get_Struct(obj, struct dbmdata, dbmp);\
- if (dbmp == 0) closed_dbm();\
- if (dbmp->di_dbm == 0) closed_dbm();\
+ Data_Get_Struct((obj), struct dbmdata, (dbmp));\
+ if ((dbmp) == 0) closed_dbm();\
+ if ((dbmp)->di_dbm == 0) closed_dbm();\
}
#define GetDBM2(obj, data, dbm) {\
- GetDBM(obj, data);\
+ GetDBM((obj), (data));\
(dbm) = dbmp->di_dbm;\
}