From 370ad6fade6a9915be2541f089ebf2e3def7bd1d Mon Sep 17 00:00:00 2001 From: crimsonwoods Date: Mon, 23 Dec 2013 00:33:07 -0800 Subject: Remove 'mrb_state' field from 'kh_xxx_t' structure. 'kh_xxx_t' requires 'mrb_state' to allocate, free, and compute hash value. But 'mrb_state' should not be held by 'kh_xxx_t' and 'mrb_state' should be supplied from outside. --- src/kernel.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/kernel.c') diff --git a/src/kernel.c b/src/kernel.c index 1674b0d5d..15567a65f 100644 --- a/src/kernel.c +++ b/src/kernel.c @@ -733,7 +733,7 @@ method_entry_loop(mrb_state *mrb, struct RClass* klass, khash_t(st)* set) if (!h) return; for (i=0;i