From c33ba4a67ee0aa5b905000d872951268861eb546 Mon Sep 17 00:00:00 2001 From: mame Date: Sat, 13 Jan 2018 13:00:14 +0000 Subject: [PATCH] compile.c (struct ibf_object_*): Use FLEX_ARY_LEN git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@61810 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- compile.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/compile.c b/compile.c index 6091d302b2..879d332e89 100644 --- a/compile.c +++ b/compile.c @@ -8786,7 +8786,7 @@ enum ibf_object_class_index { struct ibf_object_string { long encindex; long len; - char ptr[1]; + char ptr[FLEX_ARY_LEN]; }; struct ibf_object_regexp { @@ -8796,12 +8796,12 @@ struct ibf_object_regexp { struct ibf_object_array { long len; - long ary[1]; + long ary[FLEX_ARY_LEN]; }; struct ibf_object_hash { long len; - long keyval[1]; + long keyval[FLEX_ARY_LEN]; }; struct ibf_object_struct_range { @@ -8814,7 +8814,7 @@ struct ibf_object_struct_range { struct ibf_object_bignum { ssize_t slen; - BDIGIT digits[1]; + BDIGIT digits[FLEX_ARY_LEN]; }; enum ibf_object_data_type {