1
0
Fork 0

Fix compilation of new estimation function.

This commit is contained in:
Max Neunhoeffer 2014-11-24 09:39:05 +01:00 committed by Frank Celler
parent d889974ad4
commit ff3a999348
1 changed files with 2 additions and 1 deletions

View File

@ -1538,7 +1538,8 @@ void LimitNode::toJsonHelper (triagens::basics::Json& nodes,
double LimitNode::estimateCost (size_t& nrItems) const {
size_t incoming = 0;
double depCost = _dependencies.at(0)->getCost(incoming);
nrItems = std::min(_limit, std::max(0, incoming - _offset));
nrItems = (std::min)(_limit, (std::max)(static_cast<size_t>(0),
incoming - _offset));
return depCost + nrItems;
}