mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-28 21:01:04 +00:00
Use sizeof(a) instead of a::PoolType::AllocByteSize
* The coverity compiler doesn't seem to handle the AllocByteSize case correctly
This commit is contained in:
@@ -261,6 +261,6 @@ class WrappingPool
|
||||
#define WRAPPED_POOL_INST(a) \
|
||||
a::PoolType a::m_Pool; \
|
||||
template<> const size_t a::PoolType::AllocByteSize = sizeof(a); \
|
||||
RDCCOMPILE_ASSERT(a::PoolType::AllocCount*a::PoolType::AllocByteSize <= a::PoolType::AllocMaxByteSize, "Pool is bigger than max pool size cap"); \
|
||||
RDCCOMPILE_ASSERT(a::PoolType::AllocCount*sizeof(a) <= a::PoolType::AllocMaxByteSize, "Pool is bigger than max pool size cap"); \
|
||||
RDCCOMPILE_ASSERT(a::PoolType::AllocCount > 2, "Pool isn't greater than 2 in size. Bad parameters?"); \
|
||||
DECL_TYPENAME(a);
|
||||
|
||||
Reference in New Issue
Block a user