mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Pack struct rb_strterm_heredoc_struct on 32-bit platforms
This commit is contained in:
parent
88449100bc
commit
0ed9bdfc13
1 changed files with 5 additions and 0 deletions
5
parse.y
5
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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue