mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
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
This commit is contained in:
parent
e3f88ac44d
commit
18a8812e36
3 changed files with 3 additions and 3 deletions
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue