mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-07-14 02:50:35 +08:00
Functions from <algorithm> reimplemented in libuavcan
This commit is contained in:
@@ -45,7 +45,7 @@ std::size_t LimitedPoolAllocator::getBlockSize() const
|
||||
|
||||
std::size_t LimitedPoolAllocator::getNumBlocks() const
|
||||
{
|
||||
return std::min(max_blocks_, allocator_.getNumBlocks());
|
||||
return min(max_blocks_, allocator_.getNumBlocks());
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user