summaryrefslogtreecommitdiffhomepage
path: root/src/class.c
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2020-08-29 07:38:45 +0900
committerYukihiro "Matz" Matsumoto <[email protected]>2020-10-12 18:20:07 +0900
commitdd1ce5d53efa9a00cd9bdc7a7771bc6489da4469 (patch)
tree1354054dcdf4f621c5adcbb8b5208fb079774957 /src/class.c
parent7eaaee5405f71c598893e9a022c755f61f11e9ec (diff)
downloadmruby-dd1ce5d53efa9a00cd9bdc7a7771bc6489da4469.tar.gz
mruby-dd1ce5d53efa9a00cd9bdc7a7771bc6489da4469.zip
Silence warnings from implicit integer conversions.
Caused from combination of `mrb_int`, `int` and `size_t`..
Diffstat (limited to 'src/class.c')
-rw-r--r--src/class.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/class.c b/src/class.c
index ac5652e9a..668f9a6ce 100644
--- a/src/class.c
+++ b/src/class.c
@@ -50,7 +50,7 @@ mt_new(mrb_state *mrb)
return t;
}
-static struct mt_elem *mt_put(mrb_state *mrb, mt_tbl *t, mrb_sym sym, int func_p, union mt_ptr ptr);
+static struct mt_elem *mt_put(mrb_state *mrb, mt_tbl *t, mrb_sym sym, size_t func_p, union mt_ptr ptr);
static void
mt_rehash(mrb_state *mrb, mt_tbl *t)
@@ -81,7 +81,7 @@ mt_rehash(mrb_state *mrb, mt_tbl *t)
/* Set the value for the symbol in the method table. */
static struct mt_elem*
-mt_put(mrb_state *mrb, mt_tbl *t, mrb_sym sym, int func_p, union mt_ptr ptr)
+mt_put(mrb_state *mrb, mt_tbl *t, mrb_sym sym, size_t func_p, union mt_ptr ptr)
{
size_t hash, pos, start;
struct mt_elem *dslot = NULL;