Fixes some cast warnings, partial port of citra #3064 (#106)

* Fixes some cast warnings, partially fixes citra #3064

* Converted casts to uint32_t to u32

* Ran clang-format
This commit is contained in:
River City Ransomware
2018-01-19 18:01:41 -05:00
committed by bunnei
parent 7b219539a9
commit dd62f125c3
6 changed files with 22 additions and 21 deletions

View File

@ -95,7 +95,7 @@ public:
Header header{};
header.data_offset = sizeof(Header);
header.data_size = write_index - sizeof(Header);
header.data_size = static_cast<u32_le>(write_index - sizeof(Header));
std::memcpy(buffer.data(), &header, sizeof(Header));
return buffer;