core: Resolve C4267 warning on MSVC
This commit is contained in:
parent
4e73ff3978
commit
3a43475149
7 changed files with 15 additions and 12 deletions
|
@ -8,7 +8,8 @@
|
|||
namespace VideoDumper {
|
||||
|
||||
VideoFrame::VideoFrame(std::size_t width_, std::size_t height_, u8* data_)
|
||||
: width(width_), height(height_), stride(width * 4), data(data_, data_ + width * height * 4) {}
|
||||
: width(width_), height(height_), stride(static_cast<u32>(width * 4)),
|
||||
data(data_, data_ + width * height * 4) {}
|
||||
|
||||
Backend::~Backend() = default;
|
||||
NullBackend::~NullBackend() = default;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue