mirror of
https://github.com/Ninjdai1/pokeemerald.git
synced 2024-12-26 03:34:15 +01:00
[doc] clean up casts in decompress.c
This commit is contained in:
parent
b8bf9dea56
commit
8dad7cc649
@ -268,7 +268,7 @@ bool8 LoadCompressedSpriteSheetUsingHeap(const struct CompressedSpriteSheet *src
|
||||
struct SpriteSheet dest;
|
||||
void *buffer;
|
||||
|
||||
buffer = AllocZeroed(*((u32 *)(&src->data[0])) >> 8);
|
||||
buffer = AllocZeroed(src->data[0] >> 8);
|
||||
LZ77UnCompWram(src->data, buffer);
|
||||
|
||||
dest.data = buffer;
|
||||
@ -285,7 +285,7 @@ bool8 LoadCompressedSpritePaletteUsingHeap(const struct CompressedSpritePalette
|
||||
struct SpritePalette dest;
|
||||
void *buffer;
|
||||
|
||||
buffer = AllocZeroed(*((u32 *)(&src->data[0])) >> 8);
|
||||
buffer = AllocZeroed(src->data[0] >> 8);
|
||||
LZ77UnCompWram(src->data, buffer);
|
||||
dest.data = buffer;
|
||||
dest.tag = src->tag;
|
||||
|
Loading…
Reference in New Issue
Block a user