From 96216554d2de68c90c53068a87d88e8f25207d74 Mon Sep 17 00:00:00 2001 From: akr Date: Fri, 25 Mar 2011 12:56:34 +0000 Subject: [PATCH] * ext/sdbm/init.c: parenthesize macro arguments. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31180 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 4 ++++ ext/sdbm/init.c | 8 ++++---- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/ChangeLog b/ChangeLog index 0c26ecc321..4ddb96a804 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +Fri Mar 25 21:56:10 2011 Tanaka Akira + + * ext/sdbm/init.c: parenthesize macro arguments. + Fri Mar 25 19:39:40 2011 Ben Walton * test/test_syslog.rb: diff --git a/ext/sdbm/init.c b/ext/sdbm/init.c index 6a02e1e1c5..7ba59c4e5c 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;\ }