summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-10-17 01:38:04 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-10-17 01:38:04 +0000
commit6944271c0d18336376f63b3dda442a18202a4c1b (patch)
treee0b3af813830422a14730f97b8969049869cce27
parentdee91b534ab661dc97f68a28d7e2aabd0e6acdfb (diff)
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
-rw-r--r--ext/-test-/bug_reporter/bug_reporter.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/-test-/bug_reporter/bug_reporter.c b/ext/-test-/bug_reporter/bug_reporter.c
index 1924af4f9b..1ca9d02bc4 100644
--- a/ext/-test-/bug_reporter/bug_reporter.c
+++ b/ext/-test-/bug_reporter/bug_reporter.c
@@ -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;
}