ruby-changes:53248
From: ko1 <ko1@a...>
Date: Wed, 31 Oct 2018 10:36:46 +0900 (JST)
Subject: [ruby-changes:53248] ko1:r65463 (trunk): add casts.
ko1 2018-10-31 10:36:39 +0900 (Wed, 31 Oct 2018) New Revision: 65463 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=65463 Log: 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 Modified files: trunk/gc.c Index: gc.c =================================================================== --- gc.c (revision 65462) +++ gc.c (revision 65463) @@ -9697,7 +9697,7 @@ rb_raw_obj_info(char *buff, const int bu https://github.com/ruby/ruby/blob/trunk/gc.c#L9697 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 bu https://github.com/ruby/ruby/blob/trunk/gc.c#L9727 } 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; -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/