mirror of
https://github.com/wheremyfoodat/Panda3DS.git
synced 2025-04-20 04:29:13 +12:00
Fix C4267
/C4244
warnings
Address warnings involving lossy conversions from larger integer-types into smaller integer-types
This commit is contained in:
parent
86de7d8aa3
commit
37b75f0928
11 changed files with 77 additions and 83 deletions
|
@ -12,7 +12,7 @@ u32 CartLZ77::decompressedSize(const u8* buffer, u32 compressedSize) {
|
|||
}
|
||||
|
||||
bool CartLZ77::decompress(std::vector<u8>& output, const std::vector<u8>& input) {
|
||||
u32 sizeCompressed = input.size() * sizeof(u8);
|
||||
u32 sizeCompressed = u32(input.size() * sizeof(u8));
|
||||
u32 sizeDecompressed = decompressedSize(input);
|
||||
output.resize(sizeDecompressed);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue