From e081cf1c3d33e63fbc10a4c2d30d3755d9a6be3c Mon Sep 17 00:00:00 2001 From: DennisOSRM Date: Sat, 10 Dec 2011 18:43:37 +0100 Subject: [PATCH] Fixing inverted #ifdef --- DataStructures/NNGrid.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/DataStructures/NNGrid.h b/DataStructures/NNGrid.h index 71f2c229f..0e301787a 100644 --- a/DataStructures/NNGrid.h +++ b/DataStructures/NNGrid.h @@ -209,7 +209,7 @@ public: std::vector entriesInFileWithRAMSameIndex; unsigned indexInRamTable = entries->begin()->ramIndex; unsigned lastPositionInIndexFile = 0; -#ifndef NDEBUG +#ifdef NDEBUG unsigned numberOfUsedCells = 0; #endif unsigned maxNumberOfRAMCellElements = 0; @@ -226,7 +226,7 @@ public: lastPositionInIndexFile += numberOfBytesInCell; entriesInFileWithRAMSameIndex.clear(); indexInRamTable = vt->ramIndex; -#ifndef NDEBUG +#ifdef NDEBUG numberOfUsedCells++; #endif } @@ -234,7 +234,7 @@ public: } /*unsigned numberOfBytesInCell = */FillCell(entriesInFileWithRAMSameIndex, lastPositionInIndexFile); ramIndexTable[indexInRamTable] = lastPositionInIndexFile; -#ifndef NDEBUG +#ifdef NDEBUG numberOfUsedCells++; #endif entriesInFileWithRAMSameIndex.clear(); @@ -244,7 +244,7 @@ public: indexOutFile.close(); -#ifndef NDEBUG +#ifdef NDEBUG for(int i = 0; i < 1024*1024; ++i) { if(ramIndexTable[i] != UINT_MAX) { numberOfUsedCells--;