Fixed number of tools (only relevant for DEBUG builds) + fixed an out-of-bounds array access in the error message.

This commit is contained in:
LoRd_MuldeR 2014-01-01 17:50:56 +01:00
parent cc38035087
commit 29089c567b

View File

@ -45,7 +45,7 @@
/* constants */
static const double g_allowedExtractDelay = 12.0;
static const size_t BUFF_SIZE = 512;
static const size_t EXPECTED_TOOL_COUNT = 27;
static const size_t EXPECTED_TOOL_COUNT = 28;
/* benchmark */
#undef ENABLE_BENCHMARK
@ -925,7 +925,7 @@ void InitializationThread::selfTest(void)
}
if(n != EXPECTED_TOOL_COUNT)
{
qFatal("Tool count mismatch for CPU type %u !!!", cpu[4]);
qFatal("Tool count mismatch for CPU type %u !!!", cpu[k]);
}
qDebug("Done.\n");
}