aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--parse.y5
1 files changed, 5 insertions, 0 deletions
diff --git a/parse.y b/parse.y
index e9f0a0ff87..324ad6b852 100644
--- a/parse.y
+++ b/parse.y
@@ -622,8 +622,13 @@ struct rb_strterm_heredoc_struct {
# define HERETERM_LENGTH_MAX UINT_MAX
#endif
;
+#if HERETERM_LENGTH_BITS < SIZEOF_INT * CHAR_BIT
unsigned quote: 1;
+ unsigned func: 8;
+#else
+ uint8_t quote;
uint8_t func;
+#endif
};
STATIC_ASSERT(rb_strterm_heredoc_t, sizeof(rb_strterm_heredoc_t) <= 4 * SIZEOF_VALUE);