summaryrefslogtreecommitdiff
path: root/iseq.c
diff options
context:
space:
mode:
authorshyouhei <shyouhei@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-01-13 10:47:32 (GMT)
committershyouhei <shyouhei@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-01-13 10:47:32 (GMT)
commit307547f02fa4523a8dea67bf9b617629af91a6c0 (patch)
treeea2bdffca217786ef7c1a3f4e2382a34c38ade6c /iseq.c
parent982e27e95d486a9a1558243b1508483ab2908c19 (diff)
flexible array member is a C99ism
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@61801 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'iseq.c')
-rw-r--r--iseq.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/iseq.c b/iseq.c
index 281c13c..5cdac49 100644
--- a/iseq.c
+++ b/iseq.c
@@ -2836,7 +2836,15 @@ struct succ_index_table {
unsigned int rank;
uint64_t small_block_ranks; /* 9 bits * 7 = 63 bits */
uint64_t bits[512/64];
- } succ_part[];
+ } succ_part[
+#if defined(__STDC_VERSION__) && (__STDC_VERSION__ >= 199901L)
+ /* flexible array member */
+#elif defined(__GNUC__) && !defined(__STRICT_ANSI__)
+ 0
+#else
+ 1
+#endif
+ ];
} succ_index_table;
#define imm_block_rank_set(v, i, r) (v) |= (uint64_t)(r) << (7 * (i))