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 | 0cbf16c375c44100b2b49b56359e7b4cefa034ad (patch) | |
| tree | 9363505e5c35ebae1744ca1c415e418c7b314ff8 /insns.def | |
| parent | fd06526c1906ca0859776186aec0231607518deb (diff) | |
| download | ruby-0cbf16c375c44100b2b49b56359e7b4cefa034ad.tar.gz ruby-0cbf16c375c44100b2b49b56359e7b4cefa034ad.tar.xz ruby-0cbf16c375c44100b2b49b56359e7b4cefa034ad.zip | |
* insns.def(setconstant, toregexp): fix to mark object correctly.
git-svn-id: http://svn.ruby-lang.org/repos/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); } |
