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

ruby-changes:29386

From: ko1 <ko1@a...>
Date: Thu, 20 Jun 2013 00:06:50 +0900 (JST)
Subject: [ruby-changes:29386] ko1:r41437 (trunk): * gc.c (RVALUE_PROMOTED): fix type.

ko1	2013-06-20 00:06:27 +0900 (Thu, 20 Jun 2013)

  New Revision: 41437

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

  Log:
    * gc.c (RVALUE_PROMOTED): fix type.

  Modified files:
    trunk/ChangeLog
    trunk/gc.c

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 41436)
+++ ChangeLog	(revision 41437)
@@ -1,3 +1,7 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Thu Jun 20 00:05:07 2013  Koichi Sasada  <ko1@a...>
+
+	* gc.c (RVALUE_PROMOTED): fix type.
+
 Wed Jun 19 23:39:01 2013  Koichi Sasada  <ko1@a...>
 
 	* gc.c (garbage_collect_test): rewrite checking code.
Index: gc.c
===================================================================
--- gc.c	(revision 41436)
+++ gc.c	(revision 41437)
@@ -526,7 +526,7 @@ RVALUE_PROMOTED(VALUE obj) https://github.com/ruby/ruby/blob/trunk/gc.c#L526
     int result = FL_TEST2((obj), FL_OLDGEN);
 
     if (RGENGC_CHECK_MODE > 0) {
-	int bitmap_result = RVALUE_PROMOTED_FROM_BITMAP(obj);
+	int bitmap_result = RVALUE_PROMOTED_FROM_BITMAP(obj) ? TRUE : FALSE;
 	if (!result != !bitmap_result) rb_bug("RVALUE_PROMOTED: %p (%s) flag %d but bitmap is %d\n",
 					      (void *)obj, obj_type_name(obj), !!result, !!bitmap_result);
     }

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

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