Skip to content

Commit

Permalink
Fix typo in RHASH_ST_CLEAR
Browse files Browse the repository at this point in the history
We should be setting as.st and not as.ar.
  • Loading branch information
peterzhu2118 committed Jan 20, 2023
1 parent ffd5241 commit 4e03707
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/hash.h
Expand Up @@ -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
Expand Down

0 comments on commit 4e03707

Please sign in to comment.