From adfcc591a80fadcee5be9309708fc17fc992bf04 Mon Sep 17 00:00:00 2001 From: akr Date: Sun, 6 Feb 2011 02:29:49 +0000 Subject: [PATCH] * ext/dbm/dbm.c: parenthesize macro arguments. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30802 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 4 ++++ ext/dbm/dbm.c | 8 ++++---- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/ChangeLog b/ChangeLog index 1105ddd40a..f657c2b8da 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +Sun Feb 6 11:29:23 2011 Tanaka Akira + + * ext/dbm/dbm.c: parenthesize macro arguments. + Sat Feb 5 22:01:59 2011 KOSAKI Motohiro * lib/test/unit/assertions.rb (Test::Unit::Assertions#assert): diff --git a/ext/dbm/dbm.c b/ext/dbm/dbm.c index cae9284c7a..43f52cc774 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;\ }