diff --git a/Recast/Include/RecastAlloc.h b/Recast/Include/RecastAlloc.h index a3c5fbd..bbf3ced 100644 --- a/Recast/Include/RecastAlloc.h +++ b/Recast/Include/RecastAlloc.h @@ -172,7 +172,7 @@ bool rcVectorBase::reserve(rcSizeType count) { } template T* rcVectorBase::allocate_and_copy(rcSizeType size) { - rcAssert(RC_SIZE_MAX / sizeof(T) >= size); + rcAssert(RC_SIZE_MAX / static_cast(sizeof(T)) >= size); T* new_data = static_cast(rcAlloc(sizeof(T) * size, H)); if (new_data) { copy_range(new_data, m_data, m_data + m_size);