Skip to content

Commit

Permalink
Convert a few more variables to unsigneds.
Browse files Browse the repository at this point in the history
  • Loading branch information
fragglet committed Oct 20, 2023
1 parent 6539c41 commit b9882fa
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions blockmap.c
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ typedef struct {
typedef struct {
uint16_t *elements;
size_t len, size;
int num_blocks;
unsigned int num_blocks;
} blockmap_t;

static blockmap_t ReadBlockmap(wad_file_t *wf, unsigned int lumpnum);
Expand All @@ -52,7 +52,7 @@ static block_t *MakeBlocklist(const blockmap_t *blockmap)
{
block_t *blocklist;
block_t *block;
int i, start_index, end_index;
unsigned int i, start_index, end_index;

blocklist = ALLOC_ARRAY(block_t, blockmap->num_blocks);

Expand Down Expand Up @@ -133,7 +133,7 @@ static blockmap_t RebuildBlockmap(const blockmap_t *blockmap, bool compress)
block_t *blocklist;
uint16_t *block_offsets;
unsigned int *sorted_map;
int i;
unsigned int i;

blocklist = MakeBlocklist(blockmap);

Expand Down Expand Up @@ -310,7 +310,7 @@ bool B_IsStacked(wad_file_t *wf, unsigned int lumpnum)
unsigned int *sorted_map;
uint16_t *block_offsets;
bool result = false;
int i;
unsigned int i;

blockmap_t blockmap = ReadBlockmap(wf, lumpnum);

Expand Down

0 comments on commit b9882fa

Please sign in to comment.