aboutsummaryrefslogtreecommitdiffstats
path: root/compile.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-04-16 12:46:08 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-04-16 12:46:08 +0000
commit1331979da521f449c7cfb39de417ed9ed2b9a51c (patch)
tree0ec178b1923efd0c9a8826be71eb23f232cab24e /compile.c
parent6e310d7686684edfe0dc469fca257bbef9d87371 (diff)
downloadruby-1331979da521f449c7cfb39de417ed9ed2b9a51c.tar.gz
compile.c: align range
* compile.c (ibf_dump_object_struct): align range elements. [ruby-core:86548] [Bug #14689] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63167 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'compile.c')
-rw-r--r--compile.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/compile.c b/compile.c
index 5d37c730ef..f1cd30fe5f 100644
--- a/compile.c
+++ b/compile.c
@@ -9259,6 +9259,7 @@ ibf_dump_object_struct(struct ibf_dump *dump, VALUE obj)
range.beg = (long)ibf_dump_object(dump, beg);
range.end = (long)ibf_dump_object(dump, end);
+ IBF_W_ALIGN(struct ibf_object_struct_range);
IBF_WV(range);
}
else {
@@ -9425,7 +9426,7 @@ ibf_dump_object_object(struct ibf_dump *dump, VALUE obj)
IBF_ZERO(obj_header);
obj_header.type = TYPE(obj);
- ibf_dump_align(dump, sizeof(ibf_offset_t));
+ IBF_W_ALIGN(ibf_offset_t);
current_offset = ibf_dump_pos(dump);
if (SPECIAL_CONST_P(obj)) {