Skip to content

Commit

Permalink
gcc13 test
Browse files Browse the repository at this point in the history
  • Loading branch information
sezero committed Sep 9, 2023
1 parent 847046b commit 59f22bd
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions libmikmod/depackers/mmcmp.c
Original file line number Diff line number Diff line change
Expand Up @@ -260,10 +260,8 @@ BOOL MMCMP_Unpack(MREADER* reader, void** out, long* outlen)
else if (block.flags & MMCMP_16BIT)
{ /* Data is 16-bit packed */
MMCMPBITBUFFER bb;
ULONG size;
ULONG pos = 0;
ULONG numbits = block.num_bits;
ULONG oldval = 0;
ULONG size, pos = 0, oldval = 0;
UBYTE numbits = block.num_bits;

#ifdef MMCMP_DEBUG
fprintf(stderr, " 16-bit block: pos=%u size=%u ",
Expand Down Expand Up @@ -347,11 +345,9 @@ BOOL MMCMP_Unpack(MREADER* reader, void** out, long* outlen)
else
{ /* Data is 8-bit packed */
MMCMPBITBUFFER bb;
ULONG size;
ULONG pos = 0;
ULONG numbits = block.num_bits;
ULONG oldval = 0;
ULONG size, pos = 0, oldval = 0;
UBYTE ptable[0x100];
UBYTE numbits = block.num_bits;

size = block.pk_size - block.tt_entries;
if (bufsize < size) {
Expand Down

0 comments on commit 59f22bd

Please sign in to comment.