ruby-changes:49693
From: mame <ko1@a...>
Date: Sat, 13 Jan 2018 22:00:20 +0900 (JST)
Subject: [ruby-changes:49693] mame:r61810 (trunk): compile.c (struct ibf_object_*): Use FLEX_ARY_LEN
mame 2018-01-13 22:00:14 +0900 (Sat, 13 Jan 2018) New Revision: 61810 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=61810 Log: compile.c (struct ibf_object_*): Use FLEX_ARY_LEN Modified files: trunk/compile.c Index: compile.c =================================================================== --- compile.c (revision 61809) +++ compile.c (revision 61810) @@ -8786,7 +8786,7 @@ enum ibf_object_class_index { https://github.com/ruby/ruby/blob/trunk/compile.c#L8786 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 { https://github.com/ruby/ruby/blob/trunk/compile.c#L8796 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 { https://github.com/ruby/ruby/blob/trunk/compile.c#L8814 struct ibf_object_bignum { ssize_t slen; - BDIGIT digits[1]; + BDIGIT digits[FLEX_ARY_LEN]; }; enum ibf_object_data_type { -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/