mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-22 01:03:35 +08:00
Most enums were replaced with constants, according to MISRA
This commit is contained in:
@@ -94,7 +94,7 @@ class UAVCAN_EXPORT DynamicTransferBufferManagerEntry
|
||||
struct Block : LinkedListNode<Block>
|
||||
{
|
||||
enum { Size = MemPoolBlockSize - sizeof(LinkedListNode<Block>) };
|
||||
uint8_t data[Size];
|
||||
uint8_t data[static_cast<unsigned>(Size)];
|
||||
|
||||
static Block* instantiate(IPoolAllocator& allocator);
|
||||
static void destroy(Block*& obj, IPoolAllocator& allocator);
|
||||
|
||||
Reference in New Issue
Block a user