Skip to content

Commit

Permalink
Fix gi.TagMalloc() parameter type.
Browse files Browse the repository at this point in the history
  • Loading branch information
skullernet authored and Paril committed Dec 10, 2021
1 parent 133f22e commit ecf2776
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion inc/shared/game.h
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ typedef struct {
void (*WriteAngle)(float f);

// managed memory allocation
void *(*TagMalloc)(size_t size, unsigned tag);
void *(*TagMalloc)(unsigned size, unsigned tag);
void (*TagFree)(void *block);
void (*FreeTags)(unsigned tag);

Expand Down
2 changes: 1 addition & 1 deletion src/server/game.c
Original file line number Diff line number Diff line change
Expand Up @@ -745,7 +745,7 @@ static qboolean PF_AreasConnected(int area1, int area2)
return CM_AreasConnected(&sv.cm, area1, area2);
}

static void *PF_TagMalloc(size_t size, unsigned tag)
static void *PF_TagMalloc(unsigned size, unsigned tag)
{
if (tag + TAG_MAX < tag) {
Com_Error(ERR_FATAL, "%s: bad tag", __func__);
Expand Down

0 comments on commit ecf2776

Please sign in to comment.