ruby-changes:54873
From: nobu <ko1@a...>
Date: Fri, 15 Feb 2019 14:51:45 +0900 (JST)
Subject: [ruby-changes:54873] nobu:r67078 (trunk): Assert that union sizes match
nobu 2019-02-15 14:51:39 +0900 (Fri, 15 Feb 2019) New Revision: 67078 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=67078 Log: Assert that union sizes match Modified files: trunk/gc.c Index: gc.c =================================================================== --- gc.c (revision 67077) +++ gc.c (revision 67078) @@ -449,6 +449,8 @@ typedef struct RVALUE { https://github.com/ruby/ruby/blob/trunk/gc.c#L449 #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), -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/