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

ruby-changes:39666

From: ko1 <ko1@a...>
Date: Thu, 3 Sep 2015 20:30:24 +0900 (JST)
Subject: [ruby-changes:39666] ko1:r51747 (trunk): * gc.c (rb_raw_obj_info): iseq->body->location.first_lineno is Fixnum.

ko1	2015-09-03 20:30:03 +0900 (Thu, 03 Sep 2015)

  New Revision: 51747

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

  Log:
    * gc.c (rb_raw_obj_info): iseq->body->location.first_lineno is Fixnum.

  Modified files:
    trunk/ChangeLog
    trunk/gc.c
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 51746)
+++ ChangeLog	(revision 51747)
@@ -1,3 +1,7 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Thu Sep  3 20:29:18 2015  Koichi Sasada  <ko1@a...>
+
+	* gc.c (rb_raw_obj_info): iseq->body->location.first_lineno is Fixnum.
+
 Thu Sep  3 17:54:26 2015  Nobuyoshi Nakada  <nobu@r...>
 
 	* vm_eval.c (raise_method_missing): "names" should be singular.
Index: gc.c
===================================================================
--- gc.c	(revision 51746)
+++ gc.c	(revision 51747)
@@ -8994,7 +8994,9 @@ rb_raw_obj_info(char *buff, const int bu https://github.com/ruby/ruby/blob/trunk/gc.c#L8994
 
 		if (iseq->body->location.label) {
 		    snprintf(buff, buff_size, "%s %s@%s:%d", buff,
-			     RSTRING_PTR(iseq->body->location.label), RSTRING_PTR(iseq->body->location.path), (int)iseq->body->location.first_lineno);
+			     RSTRING_PTR(iseq->body->location.label),
+			     RSTRING_PTR(iseq->body->location.path),
+			     FIX2INT(iseq->body->location.first_lineno));
 		}
 		break;
 	    }

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

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