removed some compiler warnings that indicate potential undefined behaviour

This commit is contained in:
mariob92
2024-09-20 20:06:24 +02:00
parent fbe20325c2
commit 4405a7c2ce
13 changed files with 33 additions and 27 deletions

View File

@@ -104,7 +104,7 @@ static int _rarezip_uncompress(u8 **srcPtr, u8 **dstPtr, struct huft * arg2){
int result;
result = _rarezip_inflate(*srcPtr, *dstPtr, arg2);
*dstPtr = *dstPtr + D_8027BF1C;
*dstPtr = ((u32)*dstPtr & 0xF) ? ((u32)*dstPtr & -0x10) + 0x10: *dstPtr;
*dstPtr = ((u32)*dstPtr & 0xF) ? (u8 *) ((u32)*dstPtr & -0x10) + 0x10: *dstPtr;
*srcPtr = *srcPtr + D_8027BF18 + COMP_HEADER_SIZE;
return result;
}