summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/ruby/st.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/include/ruby/st.h b/include/ruby/st.h
index 695fbf9cb9..dbb0de45a8 100644
--- a/include/ruby/st.h
+++ b/include/ruby/st.h
@@ -91,8 +91,13 @@ struct st_table {
__extension__
#endif
st_index_t num_entries : ST_INDEX_BITS - 1;
- struct st_table_entry **bins;
- struct st_table_entry *head, *tail;
+ union {
+ struct {
+ struct st_table_entry **bins;
+ struct st_table_entry *head, *tail;
+ } big;
+ struct st_packed_bins *packed;
+ } as;
};
#define st_is_member(table,key) st_lookup((table),(key),(st_data_t *)0)