diff options
author | Peter Zhu <peter@peterzhu.ca> | 2023-01-20 15:56:44 -0500 |
---|---|---|
committer | Peter Zhu <peter@peterzhu.ca> | 2023-01-20 15:58:17 -0500 |
commit | 4e037075ae7bd858ee59833a39bb61a5bfefa98c (patch) | |
tree | 60dd9e5914f2d26525348e9fbb599930d1c875b1 /internal/hash.h | |
parent | ffd52412ab813854d134dbbc2b60f698fe536487 (diff) |
Fix typo in RHASH_ST_CLEAR
We should be setting as.st and not as.ar.
Diffstat (limited to 'internal/hash.h')
-rw-r--r-- | internal/hash.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/hash.h b/internal/hash.h index 657e5eff3c..0a87dae349 100644 --- a/internal/hash.h +++ b/internal/hash.h @@ -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 |