diff options
author | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-06-15 06:55:36 +0000 |
---|---|---|
committer | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-06-15 06:55:36 +0000 |
commit | 5cbefb96b998480208b26ea260658c985bf7b861 (patch) | |
tree | 9363505e5c35ebae1744ca1c415e418c7b314ff8 /insns.def | |
parent | afb1901848f9b6998f320423474e830a1e95d780 (diff) | |
download | ruby-5cbefb96b998480208b26ea260658c985bf7b861.tar.gz |
* insns.def(setconstant, toregexp): fix to mark object correctly.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12547 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'insns.def')
-rw-r--r-- | insns.def | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -285,9 +285,11 @@ setconstant case T_CLASS: case T_MODULE: break; - default: + default: { + volatile VALUE tmp = rb_obj_as_string(klass); rb_raise(rb_eTypeError, "%s is not a class/module", - RSTRING_PTR(rb_obj_as_string(klass))); + RSTRING_PTR(tmp)); + } } rb_const_set(klass, id, val); @@ -446,6 +448,7 @@ toregexp (VALUE str) (VALUE val) { + volatile VALUE tmp = str; val = rb_reg_new(RSTRING_PTR(str), RSTRING_LEN(str), flag); } |