mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-06-04 18:54:00 +08:00
Revert "Avoid mixing types in CompressedStorage.h"
This commit is contained in:
parent
c4fb6af24b
commit
dd85d26946
@ -92,7 +92,7 @@ class CompressedStorage
|
|||||||
{
|
{
|
||||||
if (m_allocatedSize<size)
|
if (m_allocatedSize<size)
|
||||||
{
|
{
|
||||||
Index realloc_size = (std::min<Index>)(NumTraits<Index>::highest(), size + Index(reserveSizeFactor*double(size)));
|
Index realloc_size = (std::min<Index>)(NumTraits<StorageIndex>::highest(), size + Index(reserveSizeFactor*double(size)));
|
||||||
if(realloc_size<size)
|
if(realloc_size<size)
|
||||||
internal::throw_std_bad_alloc();
|
internal::throw_std_bad_alloc();
|
||||||
reallocate(realloc_size);
|
reallocate(realloc_size);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user