Skip to content

Commit

Permalink
Merge pull request #1794 from SBird1337/doc/decompress-casts
Browse files Browse the repository at this point in the history
[doc] clean up casts in decompress.c
  • Loading branch information
GriffinRichards authored Sep 29, 2022
2 parents b8bf9de + 8dad7cc commit 1ae5010
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/decompress.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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;
Expand Down

0 comments on commit 1ae5010

Please sign in to comment.