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

ruby-changes:4628

From: ko1@a...
Date: Mon, 21 Apr 2008 17:02:02 +0900 (JST)
Subject: [ruby-changes:4628] nobu - Ruby:r16122 (trunk): * iseq.c (rb_iseq_compile_with_option): check if src is a strring.

nobu	2008-04-21 17:01:46 +0900 (Mon, 21 Apr 2008)

  New Revision: 16122

  Modified files:
    trunk/ChangeLog
    trunk/iseq.c

  Log:
    * iseq.c (rb_iseq_compile_with_option): check if src is a strring.
      [ruby-core:16453]


  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/ChangeLog?r1=16122&r2=16121&diff_format=u
  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/iseq.c?r1=16122&r2=16121&diff_format=u

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 16121)
+++ ChangeLog	(revision 16122)
@@ -1,3 +1,8 @@
+Mon Apr 21 17:01:44 2008  Nobuyoshi Nakada  <nobu@r...>
+
+	* iseq.c (rb_iseq_compile_with_option): check if src is a strring.
+	  [ruby-core:16453]
+
 Mon Apr 21 16:06:47 2008  Yukihiro Matsumoto  <matz@r...>
 
 	* enumerator.c (enumerator_init): preserve the method name in ID.
Index: iseq.c
===================================================================
--- iseq.c	(revision 16121)
+++ iseq.c	(revision 16122)
@@ -438,7 +438,7 @@
 rb_iseq_compile_with_option(VALUE src, VALUE file, VALUE line, VALUE opt)
 {
     rb_compile_option_t option;
-    NODE *node = compile_string(src, file, line);
+    NODE *node = compile_string(StringValue(src), file, line);
     rb_thread_t *th = GET_THREAD();
     make_compile_option(&option, opt);
 

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

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