diff options
author | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-10-31 01:36:39 +0000 |
---|---|---|
committer | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-10-31 01:36:39 +0000 |
commit | c608b2707ba30cf99ae4b1fb6c9a150a88598269 (patch) | |
tree | 8a82b6fa9917b07eb4da160542f0965ac2d1144c | |
parent | 9bc48f1d055dbbd39aff85f09629bde5185190a3 (diff) |
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
-rw-r--r-- | gc.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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; |