summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-04-21 08:01:46 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-04-21 08:01:46 +0000
commit2e410c2a0079ea19776aea72dcd8a04175b28d4f (patch)
treebbba98d160ff26b026077a959b131b0317668b7c
parent33461ad389518703f334211f847b38a64b7f55f7 (diff)
downloadruby-2e410c2a0079ea19776aea72dcd8a04175b28d4f.tar.gz
ruby-2e410c2a0079ea19776aea72dcd8a04175b28d4f.tar.xz
ruby-2e410c2a0079ea19776aea72dcd8a04175b28d4f.zip
* iseq.c (rb_iseq_compile_with_option): check if src is a strring.
[ruby-core:16453] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@16122 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--ChangeLog5
-rw-r--r--iseq.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 1e3731f76..24e9ddf42 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+Mon Apr 21 17:01:44 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * 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@ruby-lang.org>
* enumerator.c (enumerator_init): preserve the method name in ID.
diff --git a/iseq.c b/iseq.c
index c54239a81..f475ca7a3 100644
--- a/iseq.c
+++ b/iseq.c
@@ -438,7 +438,7 @@ VALUE
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);