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

ruby-changes:55286

From: nobu <ko1@a...>
Date: Wed, 10 Apr 2019 15:44:51 +0900 (JST)
Subject: [ruby-changes:55286] nobu:r67495 (trunk): id_table.c: use NULL as ID* instead of Qundef

nobu	2019-04-10 15:44:43 +0900 (Wed, 10 Apr 2019)

  New Revision: 67495

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

  Log:
    id_table.c: use NULL as ID* instead of Qundef

  Modified files:
    trunk/id_table.c
Index: id_table.c
===================================================================
--- id_table.c	(revision 67494)
+++ id_table.c	(revision 67495)
@@ -279,7 +279,7 @@ rb_id_table_foreach_with_replace(struct https://github.com/ruby/ruby/blob/trunk/id_table.c#L279
 
             if (ret == ID_TABLE_REPLACE) {
                 VALUE val = tbl->items[i].val;
-                ret = (*replace)(Qundef, &val, data, TRUE);
+                ret = (*replace)(NULL, &val, data, TRUE);
                 tbl->items[i].val = val;
             }
             else if (ret == ID_TABLE_STOP)

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

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