summaryrefslogtreecommitdiffstats
path: root/string.c
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-09-17 09:24:13 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-09-17 09:24:13 +0000
commitbdeb519372f75a43883cbe3fba3e25a62de900dd (patch)
treeb20cb859d6ca1886f525e4b7477601bb1a5fbe31 /string.c
parent9575ddf9cfa0f627653889f61acfc5eb8c64ba0d (diff)
downloadruby-bdeb519372f75a43883cbe3fba3e25a62de900dd.tar.gz
ruby-bdeb519372f75a43883cbe3fba3e25a62de900dd.tar.xz
ruby-bdeb519372f75a43883cbe3fba3e25a62de900dd.zip
* array.c (rb_ary_delete): element comparison might change array
size. [ruby-dev:24273] * parse.y: make ruby parser reentrant. merge ripper parser to the real one. this change makes ruby require bison. * file.c (rb_file_truncate): clear stdio buffer before truncating the file. [ruby-dev:24191] * ext/digest/digest.c: use rb_obj_class() instead of CLASS_OF which might return singleton class. [ruby-dev:24202] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@6919 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'string.c')
-rw-r--r--string.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/string.c b/string.c
index 3ebf76e74..5814836a7 100644
--- a/string.c
+++ b/string.c
@@ -4352,9 +4352,10 @@ rb_str_crypt(str, salt)
*/
VALUE
-rb_str_intern(str)
- VALUE str;
+rb_str_intern(s)
+ VALUE s;
{
+ volatile VALUE str = s;
ID id;
if (!RSTRING(str)->ptr || RSTRING(str)->len == 0) {