summaryrefslogtreecommitdiff
path: root/parse.y
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2019-05-16 18:24:12 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2019-05-16 18:25:16 +0900
commit0ed9bdfc13082b6d19712738ca69fbbe2a36f106 (patch)
tree26c8c23eb74028a6ed5a742ada52e24674e9441e /parse.y
parent88449100bc6d23a00dbf3addb97665f4f606f2b8 (diff)
Pack struct rb_strterm_heredoc_struct on 32-bit platforms
Diffstat (limited to 'parse.y')
-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);