Feature/jenkins warnings (#538)

* Remove warnings from Jenkins
 * Improve Jenkins behavior
This commit is contained in:
Alexander Bock
2018-02-28 08:41:55 -05:00
committed by GitHub
parent 4831f4aa48
commit 9a00f38e09
68 changed files with 281 additions and 278 deletions

View File

@@ -55,8 +55,10 @@ bool ErrorHistogramManager::buildHistograms(int numBins) {
_maxBin = 1.0; // Should be calculated from tsp file as (maxValue - minValue)
unsigned int numOtLevels = _tsp->numOTLevels();
unsigned int numOtLeaves = pow(8, numOtLevels - 1);
unsigned int numBstLeaves = pow(2, _tsp->numBSTLevels() - 1);
unsigned int numOtLeaves = static_cast<unsigned int>(pow(8, numOtLevels - 1));
unsigned int numBstLeaves = static_cast<unsigned int>(
pow(2, _tsp->numBSTLevels() - 1)
);
_numInnerNodes = _tsp->numTotalNodes() - numOtLeaves * numBstLeaves;
_histograms = std::vector<Histogram>(_numInnerNodes);