summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authorhsbt <hsbt@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-07-13 08:29:09 +0000
committerhsbt <hsbt@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-07-13 08:29:09 +0000
commit3caee4843407512e74c1893ada956c54d8dc8e4e (patch)
tree2c06d16441e978e6d75e36efb2a67df4601de95b /ext
parentc7fbc29605799818d9afc9f3deec7512ed2b6348 (diff)
* ext/dbm/dbm.c: fix wrong arguments in GetDBM2 macro by @v2e4lisp.
[fix GH-655] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46801 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext')
-rw-r--r--ext/dbm/dbm.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/ext/dbm/dbm.c b/ext/dbm/dbm.c
index ae31232cb65..527d6518d00 100644
--- a/ext/dbm/dbm.c
+++ b/ext/dbm/dbm.c
@@ -51,9 +51,9 @@ closed_dbm(void)
if ((dbmp)->di_dbm == 0) closed_dbm();\
} while (0)
-#define GetDBM2(obj, data, dbm) do {\
- GetDBM((obj), (data));\
- (dbm) = dbmp->di_dbm;\
+#define GetDBM2(obj, dbmp, dbm) do {\
+ GetDBM((obj), (dbmp));\
+ (dbm) = (dbmp)->di_dbm;\
} while (0)
static void