Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fixed logic bug in string loop.
  • Loading branch information
icculus committed Feb 14, 2009
1 parent 40c1297 commit 6f8203d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mojoshader_preprocessor.c
Expand Up @@ -270,7 +270,7 @@ static void put_conditionals(Context *ctx, Conditional *item)
static unsigned char hash_define(const char *sym)
{
unsigned char retval = 0;
while (sym)
while (*sym)
retval += *(sym++);
return retval;
} // hash_define
Expand Down

0 comments on commit 6f8203d

Please sign in to comment.