summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-05-25 12:14:48 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-05-25 12:14:48 +0000
commit655a20ea9ddc13fc9359c3ae790371d658181db0 (patch)
treebe001753e53bf753c7adbc5166125e52556bac47
parent4258db79543d97845f0684f9b69911b67181cecd (diff)
vm.c: adjust argument types
* vm.c (backtrace_each, bt_init, oldbt_init): adjust argument types. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35793 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--vm.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/vm.c b/vm.c
index 54c57969b3e..1a0e1acd3f4 100644
--- a/vm.c
+++ b/vm.c
@@ -881,7 +881,7 @@ backtrace_alloc(VALUE klass)
static void
backtrace_each(rb_thread_t *th,
- void (*init)(void *arg, int size),
+ void (*init)(void *arg, size_t size),
void (*iter_iseq)(void *arg, const rb_iseq_t *iseq, const VALUE *pc),
void (*iter_cfunc)(void *arg, ID mid),
void *arg)
@@ -939,7 +939,7 @@ struct bt_iter_arg {
};
static void
-bt_init(void *ptr, int size)
+bt_init(void *ptr, size_t size)
{
struct bt_iter_arg *arg = (struct bt_iter_arg *)ptr;
arg->btobj = backtrace_alloc(rb_cBacktrace);
@@ -1083,7 +1083,7 @@ struct oldbt_arg {
};
static void
-oldbt_init(void *ptr, int dmy)
+oldbt_init(void *ptr, size_t dmy)
{
struct oldbt_arg *arg = (struct oldbt_arg *)ptr;
rb_thread_t *th = GET_THREAD();