Skip to content

Commit

Permalink
constified reglist_exists().
Browse files Browse the repository at this point in the history
--HG--
branch : trunk
  • Loading branch information
icculus committed Apr 4, 2008
1 parent 802775b commit c46c473
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions mojoshader.c
Expand Up @@ -583,12 +583,12 @@ static void reglist_insert(Context *ctx, RegisterList *prev,
} // else
} // reglist_insert

static RegisterList *reglist_exists(RegisterList *prev,
const RegisterType regtype,
const int regnum)
static const RegisterList *reglist_exists(const RegisterList *prev,
const RegisterType regtype,
const int regnum)
{
const uint32 newval = reg_to_ui32(regtype, regnum);
RegisterList *item = prev->next;
const RegisterList *item = prev->next;
while (item != NULL)
{
const uint32 val = reg_to_ui32(item->regtype, item->regnum);
Expand Down

0 comments on commit c46c473

Please sign in to comment.