Fix typo in RHASH_ST_CLEAR

We should be setting as.st and not as.ar.
This commit is contained in:
Peter Zhu 2023-01-20 15:56:44 -05:00
parent ffd52412ab
commit 4e037075ae

View File

@ -202,8 +202,8 @@ RHASH_ST_SIZE(VALUE h)
static inline void
RHASH_ST_CLEAR(VALUE h)
{
RHASH(h)->as.st = NULL;
FL_UNSET_RAW(h, RHASH_ST_TABLE_FLAG);
RHASH(h)->as.ar = NULL;
}
static inline unsigned