Merge pull request #1794 from SBird1337/doc/decompress-casts

[doc] clean up casts in decompress.c
This commit is contained in:
GriffinR 2022-09-29 11:40:02 -04:00 committed by GitHub
commit 1ae5010233
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;