diff options
| author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2001-05-07 09:26:29 +0000 |
|---|---|---|
| committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2001-05-07 09:26:29 +0000 |
| commit | d7d4acb14eb2fcb505bf8532273e413017045d43 (patch) | |
| tree | e88cf34d1e19ece721133a8ad3582e8ed4727dc6 /gc.c | |
| parent | b82260bc45cccea93abd4d254f8e14d77fec1d30 (diff) | |
| download | ruby-d7d4acb14eb2fcb505bf8532273e413017045d43.tar.gz ruby-d7d4acb14eb2fcb505bf8532273e413017045d43.tar.xz ruby-d7d4acb14eb2fcb505bf8532273e413017045d43.zip | |
* parse.y (arg): "||=" should not warn for uninitialized instance
variables.
* eval.c (rb_eval): ditto.
* eval.c (eval): preserve and restore ruby_cref as well.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@1371 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'gc.c')
| -rw-r--r-- | gc.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1220,12 +1220,12 @@ run_final(obj) args[1] = rb_ary_new3(1, rb_obj_id(obj)); /* make obj into id */ for (i=0; i<RARRAY(finalizers)->len; i++) { args[0] = RARRAY(finalizers)->ptr[i]; - rb_protect(run_single_final, (VALUE)args, &status); + rb_protect((VALUE(*)_((VALUE)))run_single_final, (VALUE)args, &status); } if (finalizer_table && st_delete(finalizer_table, &obj, &table)) { for (i=0; i<RARRAY(table)->len; i++) { args[0] = RARRAY(table)->ptr[i]; - rb_protect(run_single_final, (VALUE)args, &status); + rb_protect((VALUE(*)_((VALUE)))run_single_final, (VALUE)args, &status); } } } |
