diff --git a/core/3d/Bundle3DData.h b/core/3d/Bundle3DData.h index 828b6d827d..84d8fae316 100644 --- a/core/3d/Bundle3DData.h +++ b/core/3d/Bundle3DData.h @@ -194,9 +194,9 @@ public: size_t bsize() const { return _buffer.size(); } /** Resizes the count of indices in the container. */ - void resize(size_t size) { _buffer.resize(size * _stride); } + void resize(size_t size) {_buffer.resize(static_cast(size * _stride)); } /** Resizes the container in bytes. */ - void bresize(size_t size) { _buffer.resize(size); } + void bresize(size_t size) { _buffer.resize(static_cast(size)); } /** Returns true if the container is empty. Otherwise, false. */ bool empty() const { return _buffer.empty(); } diff --git a/core/base/axstd.h b/core/base/axstd.h index 4a8cd9ba3e..07822f2d7e 100644 --- a/core/base/axstd.h +++ b/core/base/axstd.h @@ -22,7 +22,7 @@ namespace axstd { using byte_buffer = yasio::byte_buffer; using sbyte_buffer = yasio::sbyte_buffer; -template > +template > using pod_vector = yasio::pod_vector<_Elem, _Alloc>; /* make_unique_for_overwrite since c++20, but not all platformm support */