Skip to content

Commit 0a21bc1

Browse files
committed
fix unintended dereference
1 parent 3bfd391 commit 0a21bc1

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

include/dbscan/pbbs/ndHash.h

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -82,16 +82,17 @@ class Table {
8282
}
8383
*/
8484

85-
Table(intT size, HASH hashF) :
85+
Table(intT size, HASH hashF) :
8686
m((intT)1 << utils::log2Up(100+(intT)(2.0*(float)size))),
8787
mask(m-1),
88-
empty(hashF.empty()),
8988
hashStruct(hashF),
9089
TA(newA(eType,m)),
9190
compactL(NULL),
9291
load(2.0)
93-
{ clearA(TA,m,empty);
94-
}
92+
{
93+
empty = hashStruct.empty();
94+
clearA(TA,m,empty);
95+
}
9596

9697
/*
9798
// Constructor that takes an array for the hash table space. The

0 commit comments

Comments
 (0)