summaryrefslogtreecommitdiff
path: root/internal
diff options
context:
space:
mode:
authorPeter Zhu <peter@peterzhu.ca>2023-01-20 15:56:44 -0500
committerPeter Zhu <peter@peterzhu.ca>2023-01-20 15:58:17 -0500
commit4e037075ae7bd858ee59833a39bb61a5bfefa98c (patch)
tree60dd9e5914f2d26525348e9fbb599930d1c875b1 /internal
parentffd52412ab813854d134dbbc2b60f698fe536487 (diff)
downloadruby-4e037075ae7bd858ee59833a39bb61a5bfefa98c.tar.gz
Fix typo in RHASH_ST_CLEAR
We should be setting as.st and not as.ar.
Diffstat (limited to 'internal')
-rw-r--r--internal/hash.h2
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