fix compiler warning

This commit is contained in:
Evan Tschannen 2020-08-31 01:23:47 -07:00
parent 29eec30183
commit 53def68946
1 changed files with 1 additions and 1 deletions

View File

@ -624,7 +624,7 @@ void splitKeyRangeForAppliers(Reference<ControllerBatchData> batchData,
ASSERT(batchData->samplesSize >= 0);
// Sanity check: samples should not be used after freed
ASSERT((batchData->samplesSize > 0 && !batchData->samples.empty()) ||
batchData->samplesSize == 0 && batchData->samples.empty());
(batchData->samplesSize == 0 && batchData->samples.empty()));
int numAppliers = appliersInterf.size();
double slotSize = std::max(batchData->samplesSize / numAppliers, 1.0);
double cumulativeSize = slotSize;