diff options
| author | take_cheeze <[email protected]> | 2014-03-12 10:18:38 +0900 |
|---|---|---|
| committer | take_cheeze <[email protected]> | 2014-03-12 10:18:38 +0900 |
| commit | 7c4961234d95536f46e98b6801db506ca7017377 (patch) | |
| tree | d82e58b8c3824ebc658d779f057cd0733d57e564 | |
| parent | fee639775e18778bd84a7836500c192e53f194b7 (diff) | |
| download | mruby-7c4961234d95536f46e98b6801db506ca7017377.tar.gz mruby-7c4961234d95536f46e98b6801db506ca7017377.zip | |
fix mrb_funcall calling
| -rw-r--r-- | mrbgems/mruby-struct/src/struct.c | 2 | ||||
| -rw-r--r-- | src/hash.c | 2 | ||||
| -rw-r--r-- | src/object.c | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/mrbgems/mruby-struct/src/struct.c b/mrbgems/mruby-struct/src/struct.c index 02b842e53..646414f0c 100644 --- a/mrbgems/mruby-struct/src/struct.c +++ b/mrbgems/mruby-struct/src/struct.c @@ -381,7 +381,7 @@ mrb_struct_s_def(mrb_state *mrb, mrb_value klass) } st = make_struct(mrb, name, rest, struct_class(mrb)); if (!mrb_nil_p(b)) { - mrb_funcall(mrb, b, "call", 1, &st); + mrb_funcall(mrb, b, "call", 1, st); } return st; diff --git a/src/hash.c b/src/hash.c index 9fbec3fd8..86ad4c63d 100644 --- a/src/hash.c +++ b/src/hash.c @@ -18,7 +18,7 @@ mrb_hash_ht_hash_func(mrb_state *mrb, mrb_value key) khint_t h = (khint_t)mrb_type(key) << 24; mrb_value h2; - h2 = mrb_funcall(mrb, key, "hash", 0, 0); + h2 = mrb_funcall(mrb, key, "hash", 0); h ^= h2.value.i; return h; } diff --git a/src/object.c b/src/object.c index a2e18c807..5090e38cf 100644 --- a/src/object.c +++ b/src/object.c @@ -588,7 +588,7 @@ mrb_Float(mrb_state *mrb, mrb_value val) mrb_value mrb_inspect(mrb_state *mrb, mrb_value obj) { - return mrb_obj_as_string(mrb, mrb_funcall(mrb, obj, "inspect", 0, 0)); + return mrb_obj_as_string(mrb, mrb_funcall(mrb, obj, "inspect", 0)); } mrb_bool |
