diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2019-02-15 05:51:39 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2019-02-15 05:51:39 +0000 |
commit | 387e8967a37b269de221614d8f83060d5d713bcb (patch) | |
tree | a4790b427dc0f09369d2573e0f8b78a9b9227acf /gc.c | |
parent | b1daba8227ef420247e0133ecf9bb5b647b891e0 (diff) | |
download | ruby-387e8967a37b269de221614d8f83060d5d713bcb.tar.gz |
Assert that union sizes match
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@67078 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'gc.c')
-rw-r--r-- | gc.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -449,6 +449,8 @@ typedef struct RVALUE { #pragma pack(pop) #endif +STATIC_ASSERT(rvalue_size, sizeof(((RVALUE*)0)->as) == sizeof(((RVALUE*)0)->as.values)); + typedef uintptr_t bits_t; enum { BITS_SIZE = sizeof(bits_t), |