[前][次][番号順一覧][スレッド一覧]

ruby-changes:34718

From: hsbt <ko1@a...>
Date: Sun, 13 Jul 2014 17:29:24 +0900 (JST)
Subject: [ruby-changes:34718] hsbt:r46801 (trunk): * ext/dbm/dbm.c: fix wrong arguments in GetDBM2 macro by @v2e4lisp.

hsbt	2014-07-13 17:29:09 +0900 (Sun, 13 Jul 2014)

  New Revision: 46801

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=46801

  Log:
    * ext/dbm/dbm.c: fix wrong arguments in GetDBM2 macro by @v2e4lisp.
      [fix GH-655]

  Modified files:
    trunk/ChangeLog
    trunk/ext/dbm/dbm.c
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 46800)
+++ ChangeLog	(revision 46801)
@@ -1,3 +1,8 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Sun Jul 13 17:25:50 2014  SHIBATA Hiroshi  <shibata.hiroshi@g...>
+
+	* ext/dbm/dbm.c: fix wrong arguments in GetDBM2 macro by @v2e4lisp.
+	  [fix GH-655]
+
 Sun Jul 13 16:44:56 2014  Eric Wong  <e@8...>
 
 	* vm_core.h (struct rb_call_info_struct): improve packing
Index: ext/dbm/dbm.c
===================================================================
--- ext/dbm/dbm.c	(revision 46800)
+++ ext/dbm/dbm.c	(revision 46801)
@@ -51,9 +51,9 @@ closed_dbm(void) https://github.com/ruby/ruby/blob/trunk/ext/dbm/dbm.c#L51
     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

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]