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

ruby-changes:37815

From: ko1 <ko1@a...>
Date: Mon, 9 Mar 2015 06:01:46 +0900 (JST)
Subject: [ruby-changes:37815] ko1:r49896 (trunk): * vm_insnhelper.h (COPY_CREF_OMOD): fix translation miss.

ko1	2015-03-09 06:01:31 +0900 (Mon, 09 Mar 2015)

  New Revision: 49896

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

  Log:
    * vm_insnhelper.h (COPY_CREF_OMOD): fix translation miss.

  Modified files:
    trunk/ChangeLog
    trunk/vm_insnhelper.h
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 49895)
+++ ChangeLog	(revision 49896)
@@ -1,3 +1,7 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Mon Mar  9 06:00:37 2015  Koichi Sasada  <ko1@a...>
+
+	* vm_insnhelper.h (COPY_CREF_OMOD): fix translation miss.
+
 Mon Mar  9 04:47:58 2015  Koichi Sasada  <ko1@a...>
 
 	* internal.h: define CREF accessor macros.
Index: vm_insnhelper.h
===================================================================
--- vm_insnhelper.h	(revision 49895)
+++ vm_insnhelper.h	(revision 49896)
@@ -147,7 +147,7 @@ enum vm_regan_acttype { https://github.com/ruby/ruby/blob/trunk/vm_insnhelper.h#L147
 
 #define COPY_CREF_OMOD(c1, c2) do {  \
   RB_OBJ_WRITE((c1), &CREF_REFINEMENTS(c1), CREF_REFINEMENTS(c2)); \
-  if (!CREF_REFINEMENTS(c2)) { \
+  if (!NIL_P(CREF_REFINEMENTS(c2))) { \
       CREF_OMOD_SHARED_SET(c1); \
       CREF_OMOD_SHARED_SET(c2); \
   } \

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

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