Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Patched to compile.
  • Loading branch information
icculus committed Dec 21, 2008
1 parent 6c30f4b commit 400c165
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions mojoshader_assembler.c
Expand Up @@ -1697,6 +1697,7 @@ static uint32 add_ctab_bytes(Context *ctx, const uint8 *bytes, const size_t len)
else if ((len == 1) && ((ptr = memchr(ptr, bytes[0], ctx->ctab_len - len)) != NULL))
return ( (uint32) (((uint8 *) ptr) - ctx->ctab) );
else // search for the string of bytes...
{
while ((ptr = memchr(ptr, bytes[0], ctx->ctab_len - len)) != NULL)
{
if (memcmp(ptr, bytes, len) == 0) // this is it?
Expand Down

0 comments on commit 400c165

Please sign in to comment.