Closed op-hunter closed 3 years ago
the 192th line of file Graph.h on branch master:
void reserve(size_t s) { reservedSize = ((s & 7) == 0) ? s : (s & 0xFFFFFFFFFFFFFFF8) + 8; resize(reservedSize); for (size_t i = (reservedSize & 0xFFFFFFFFFFFFFFF8); i < reservedSize; i++) { (*this)[i].first = 0; } }
I think the for loop always does nothing because i = (reservedSize & 0xFFFFFFFFFFFFFFF8) always equals reservedSize.
i = (reservedSize & 0xFFFFFFFFFFFFFFF8)
reservedSize
Thanks! I will update this part in the next version.
I have fixed this bug.
the 192th line of file Graph.h on branch master:
I think the for loop always does nothing because
i = (reservedSize & 0xFFFFFFFFFFFFFFF8)
always equalsreservedSize
.