diff --git a/compile.c b/compile.c index 31cb3d0ae2..98004b65a0 100644 --- a/compile.c +++ b/compile.c @@ -8077,7 +8077,7 @@ struct ibf_dump { rb_iseq_t * iseq_alloc(void); struct ibf_load { - const ruby_aligned_char *buff; + const RUBY_ALIGNAS(sizeof(VALUE)) char *buff; const struct ibf_header *header; ID *id_list; /* [id0, ...] */ VALUE iseq_list; /* [iseq0, ...] */ diff --git a/include/ruby/ruby.h b/include/ruby/ruby.h index b1d470163c..12b83cf7ab 100644 --- a/include/ruby/ruby.h +++ b/include/ruby/ruby.h @@ -950,8 +950,6 @@ enum ruby_rstring_flags { RSTRING_ENUM_END }; -typedef RUBY_ALIGNAS(SIZEOF_VALUE) char ruby_aligned_char; - struct RString { struct RBasic basic; union {