Fixing inverted #ifdef
This commit is contained in:
parent
7c85b2f85a
commit
e081cf1c3d
@ -209,7 +209,7 @@ public:
|
|||||||
std::vector<GridEntry> entriesInFileWithRAMSameIndex;
|
std::vector<GridEntry> entriesInFileWithRAMSameIndex;
|
||||||
unsigned indexInRamTable = entries->begin()->ramIndex;
|
unsigned indexInRamTable = entries->begin()->ramIndex;
|
||||||
unsigned lastPositionInIndexFile = 0;
|
unsigned lastPositionInIndexFile = 0;
|
||||||
#ifndef NDEBUG
|
#ifdef NDEBUG
|
||||||
unsigned numberOfUsedCells = 0;
|
unsigned numberOfUsedCells = 0;
|
||||||
#endif
|
#endif
|
||||||
unsigned maxNumberOfRAMCellElements = 0;
|
unsigned maxNumberOfRAMCellElements = 0;
|
||||||
@ -226,7 +226,7 @@ public:
|
|||||||
lastPositionInIndexFile += numberOfBytesInCell;
|
lastPositionInIndexFile += numberOfBytesInCell;
|
||||||
entriesInFileWithRAMSameIndex.clear();
|
entriesInFileWithRAMSameIndex.clear();
|
||||||
indexInRamTable = vt->ramIndex;
|
indexInRamTable = vt->ramIndex;
|
||||||
#ifndef NDEBUG
|
#ifdef NDEBUG
|
||||||
numberOfUsedCells++;
|
numberOfUsedCells++;
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
@ -234,7 +234,7 @@ public:
|
|||||||
}
|
}
|
||||||
/*unsigned numberOfBytesInCell = */FillCell(entriesInFileWithRAMSameIndex, lastPositionInIndexFile);
|
/*unsigned numberOfBytesInCell = */FillCell(entriesInFileWithRAMSameIndex, lastPositionInIndexFile);
|
||||||
ramIndexTable[indexInRamTable] = lastPositionInIndexFile;
|
ramIndexTable[indexInRamTable] = lastPositionInIndexFile;
|
||||||
#ifndef NDEBUG
|
#ifdef NDEBUG
|
||||||
numberOfUsedCells++;
|
numberOfUsedCells++;
|
||||||
#endif
|
#endif
|
||||||
entriesInFileWithRAMSameIndex.clear();
|
entriesInFileWithRAMSameIndex.clear();
|
||||||
@ -244,7 +244,7 @@ public:
|
|||||||
indexOutFile.close();
|
indexOutFile.close();
|
||||||
|
|
||||||
|
|
||||||
#ifndef NDEBUG
|
#ifdef NDEBUG
|
||||||
for(int i = 0; i < 1024*1024; ++i) {
|
for(int i = 0; i < 1024*1024; ++i) {
|
||||||
if(ramIndexTable[i] != UINT_MAX) {
|
if(ramIndexTable[i] != UINT_MAX) {
|
||||||
numberOfUsedCells--;
|
numberOfUsedCells--;
|
||||||
|
Loading…
Reference in New Issue
Block a user