mirror of
https://github.com/zeldaret/mm.git
synced 2026-08-04 01:02:54 -04:00
Provide AVOID_UB for some bugs found in GCC compiler testing (#1785)
* Provide AVOID_UB for some bugs found in GCC compiler testing Co-authored-by: Fig02 <fig02srl@gmail.com> * Format * Fix silly typo * Mention MM3D in en_dnq bug comment --------- Co-authored-by: Fig02 <fig02srl@gmail.com>
This commit is contained in:
+1
-1
@@ -112,7 +112,7 @@ s32 Yaz0_DecompressImpl(u8* src, u8* dst) {
|
||||
// N = chunkSize; B = back offset
|
||||
// 3 bytes 0B BB NN
|
||||
// 2 bytes NB BB
|
||||
chunkSize = (nibble == 0) ? *src++ + 0x12 : nibble + 2;
|
||||
chunkSize = (nibble == 0) ? (u32)(*src++ + 0x12) : nibble + 2;
|
||||
|
||||
do {
|
||||
*dst++ = *(backPtr++ - 1);
|
||||
|
||||
Reference in New Issue
Block a user