Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 434f8bd

Browse files
committed
fix Map.clear on Windows
1 parent 3a06ca4 commit 434f8bd

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/hx/Hash.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -566,8 +566,10 @@ struct Hash : public HashBase< typename ELEMENT::Key >
566566

567567
void clear()
568568
{
569-
rebucket(0);
569+
bucket = 0;
570+
size = 0;
570571
mask = 0;
572+
bucketCount = 0;
571573
}
572574

573575

0 commit comments

Comments
 (0)