summaryrefslogtreecommitdiff
path: root/ext/-test-/debug
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-01-29 09:30:37 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-01-29 09:30:37 +0000
commit18a8812e365f493d9de13d28ae0c1ad85c1ab838 (patch)
treef86ae09a268c15935790bbb3f8108b6c67fa6669 /ext/-test-/debug
parente3f88ac44d5068049e6dce1aa21ddb1ad30b24a4 (diff)
debug: trivial fixes
* ext/-test-/debug/init.c (Init_debug): use normal module. * ext/-test-/debug/inspector.c (callback): debug_inspector interfaces now use long. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38973 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/-test-/debug')
-rw-r--r--ext/-test-/debug/init.c2
-rw-r--r--ext/-test-/debug/inspector.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/ext/-test-/debug/init.c b/ext/-test-/debug/init.c
index 4b10112..fe3979c 100644
--- a/ext/-test-/debug/init.c
+++ b/ext/-test-/debug/init.c
@@ -6,6 +6,6 @@ void
Init_debug(void)
{
VALUE mBug = rb_define_module("Bug");
- VALUE klass = rb_define_class_under(mBug, "Debug", rb_cModule);
+ VALUE klass = rb_define_module_under(mBug, "Debug");
TEST_INIT_FUNCS(init);
}
diff --git a/ext/-test-/debug/inspector.c b/ext/-test-/debug/inspector.c
index 6212b2e..f0c58e5 100644
--- a/ext/-test-/debug/inspector.c
+++ b/ext/-test-/debug/inspector.c
@@ -5,7 +5,7 @@ static VALUE
callback(const rb_debug_inspector_t *dbg_context, void *data)
{
VALUE locs = rb_debug_inspector_backtrace_locations(dbg_context);
- int i, len = RARRAY_LENINT(locs);
+ long i, len = RARRAY_LEN(locs);
VALUE binds = rb_ary_new();
for (i = 0; i < len; ++i) {
VALUE entry = rb_ary_new();