1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

bug_reporter.c: suppress warnings

* ext/-test-/bug_reporter/bug_reporter.c (register_sample_bug_reporter):
  cast to suppress warnings.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43322 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2013-10-17 01:38:04 +00:00
parent dee91b534a
commit 6944271c0d

View file

@ -13,7 +13,7 @@ sample_bug_reporter(FILE *out, void *ptr)
static VALUE
register_sample_bug_reporter(VALUE self, VALUE obj)
{
rb_bug_reporter_add(sample_bug_reporter, NUM2INT(obj));
rb_bug_reporter_add(sample_bug_reporter, (void *)NUM2INT(obj));
return Qnil;
}