From c608b2707ba30cf99ae4b1fb6c9a150a88598269 Mon Sep 17 00:00:00 2001 From: ko1 Date: Wed, 31 Oct 2018 01:36:39 +0000 Subject: add casts. * gc.c (rb_raw_obj_info): fix type mismatch specified by the following build log: https://travis-ci.org/ruby/ruby/jobs/448634481 git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@65463 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- gc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gc.c') diff --git a/gc.c b/gc.c index 487dd3bf67..0c61cb4c82 100644 --- a/gc.c +++ b/gc.c @@ -9697,7 +9697,7 @@ rb_raw_obj_info(char *buff, const int buff_size, VALUE obj) C(RARRAY_TRANSIENT_P(obj), "T"), (int)RARRAY_LEN(obj), ARY_EMBED_P(obj) ? -1 : (int)RARRAY(obj)->as.heap.aux.capa, - RARRAY_CONST_PTR_TRANSIENT(obj)); + (void *)RARRAY_CONST_PTR_TRANSIENT(obj)); } break; case T_STRING: { @@ -9727,7 +9727,7 @@ rb_raw_obj_info(char *buff, const int buff_size, VALUE obj) } else { VALUE *ptr = ROBJECT_IVPTR(obj); - snprintf(buff, buff_size, "%s len:%d ptr:%p", buff, len, ptr); + snprintf(buff, buff_size, "%s len:%d ptr:%p", buff, len, (void *)ptr); } } break; -- cgit v1.2.3