Use static_cast instead of constructor syntax, GCC doesn't like it
This commit is contained in:
parent
2265de6aef
commit
5c0ae2aa03
@ -26,7 +26,7 @@ void ProgressiveTaskRunner::process() {
|
||||
// we reset when we are done.
|
||||
|
||||
_dequeue_count = math::max(int64_t(_dequeue_count), (int64_t(_tasks.size()) * delta_msec) / COMPLETION_TIME_MSEC);
|
||||
_dequeue_count = math::min(_dequeue_count, math::max(MIN_COUNT, unsigned int(_tasks.size())));
|
||||
_dequeue_count = math::min(_dequeue_count, math::max(MIN_COUNT, static_cast<unsigned int>(_tasks.size())));
|
||||
|
||||
unsigned int count = _dequeue_count;
|
||||
while (_tasks.size() > 0 && count > 0) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user