diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-04-21 08:01:46 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-04-21 08:01:46 +0000 |
commit | 11f2fa4ade2176188dcbb6da7bf536104e5484db (patch) | |
tree | bbba98d160ff26b026077a959b131b0317668b7c /iseq.c | |
parent | 59b08c22b5b9e6179cbed15620dd0f7b8cef0742 (diff) |
* iseq.c (rb_iseq_compile_with_option): check if src is a strring.
[ruby-core:16453]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16122 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'iseq.c')
-rw-r--r-- | iseq.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); |