Skip to content

Commit

Permalink
compiler warnings sayonara. just took a little casting about
Browse files Browse the repository at this point in the history
git-svn-id: svn+ssh://rubyforge.org/var/svn/mixology/trunk@12 62817f43-b31e-4560-8c3d-5e0e681460fe
  • Loading branch information
pfarley committed Aug 18, 2007
1 parent 6936566 commit bebe534
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ext/mixology/mixology.c
Expand Up @@ -26,7 +26,7 @@ static VALUE rb_mixin(VALUE self, VALUE module) {
module = RBASIC(module)->klass;
}
if (!RCLASS(module)->iv_tbl) {
RCLASS(module)->iv_tbl = st_init_numtable();
RCLASS(module)->iv_tbl = (void*)st_init_numtable();
}
klass->iv_tbl = RCLASS(module)->iv_tbl;
klass->m_tbl = RCLASS(module)->m_tbl;
Expand All @@ -40,7 +40,7 @@ static VALUE rb_mixin(VALUE self, VALUE module) {
OBJ_INFECT(klass, module);
OBJ_INFECT(klass, super);

RCLASS(rb_singleton_class(self))->super = klass;
RCLASS(rb_singleton_class(self))->super = (int)klass;
rb_clear_cache();
return self;
}
Expand Down

0 comments on commit bebe534

Please sign in to comment.