We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents c9137c6 + 5481a99 commit 78df845Copy full SHA for 78df845
pda/split.cpp
@@ -93,6 +93,7 @@ void Split::invert() {
93
for (iterator uit = begin(); uit != end(); uit++)
94
{
95
int num_bits = (uit+1 == end()) ? ntaxa % UINT_BITS : UINT_BITS;
96
+ if (num_bits == 0) num_bits = UINT_BITS; // for the case when ntaxa % UINT_BITS == 0
97
98
*uit = (1 << (num_bits-1)) - 1 + (1 << (num_bits-1)) - (*uit);
99
}
0 commit comments