diff --git a/include/halp/buffer.hpp b/include/halp/buffer.hpp index de8b99fa..2b85f967 100644 --- a/include/halp/buffer.hpp +++ b/include/halp/buffer.hpp @@ -65,13 +65,15 @@ struct cpu_buffer_input auto cast() { return std::span{ - reinterpret_cast(buffer.raw_data), buffer.byte_size / sizeof(T)}; + reinterpret_cast(buffer.raw_data), + static_cast(buffer.byte_size / sizeof(T))}; } template auto cast() const noexcept { return std::span{ - reinterpret_cast(buffer.raw_data), buffer.byte_size / sizeof(T)}; + reinterpret_cast(buffer.raw_data), + static_cast(buffer.byte_size / sizeof(T))}; } halp::raw_buffer buffer{};