summaryrefslogtreecommitdiff
path: root/gc.c
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-07-27 16:07:58 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-07-27 16:07:58 +0000
commit0dab65c00f0415ed8df539e2316a3a0ef39b4b93 (patch)
treee4dcd139a3cb1a3088ff9f29d2de95d19d1aacc1 /gc.c
parentddc68cfb7157b807f019597d48dfda58eefe00c3 (diff)
* gc.c (run_final): wrong order of data. [ruby-dev:23948]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@6707 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'gc.c')
-rw-r--r--gc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gc.c b/gc.c
index 6361ef2..a32de71 100644
--- a/gc.c
+++ b/gc.c
@@ -1756,8 +1756,8 @@ run_final(obj)
if (finalizer_table && st_delete(finalizer_table, (st_data_t*)&obj, &table)) {
for (i=0; i<RARRAY(table)->len; i++) {
VALUE final = RARRAY(table)->ptr[i];
- args[0] = FIX2INT(RARRAY(final)->ptr[0]);
- args[2] = RARRAY(final)->ptr[1];
+ args[0] = RARRAY(final)->ptr[1];
+ args[2] = FIX2INT(RARRAY(final)->ptr[0]);
rb_protect((VALUE(*)_((VALUE)))run_single_final, (VALUE)args, &status);
}
}