summaryrefslogtreecommitdiff
path: root/object.c
diff options
context:
space:
mode:
Diffstat (limited to 'object.c')
-rw-r--r--object.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/object.c b/object.c
index ed3f5df48a..30f308bf60 100644
--- a/object.c
+++ b/object.c
@@ -19,6 +19,7 @@
#include <ctype.h>
#include <math.h>
#include <float.h>
+#include "constant.h"
VALUE rb_cBasicObject;
VALUE rb_mKernel;
@@ -222,7 +223,7 @@ init_copy(VALUE dest, VALUE obj)
RCLASS_IV_TBL(dest) = 0;
}
if (RCLASS_CONST_TBL(dest)) {
- st_free_table(RCLASS_CONST_TBL(dest));
+ rb_free_const_table(RCLASS_CONST_TBL(dest));
RCLASS_CONST_TBL(dest) = 0;
}
if (RCLASS_IV_TBL(obj)) {