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

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
This commit is contained in:
ko1 2018-10-31 01:36:39 +00:00
parent 9bc48f1d05
commit c608b2707b

4
gc.c
View file

@ -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;