Skip to content

Commit

Permalink
Bytecode emit: Don't read starting from the end of the token buffer
Browse files Browse the repository at this point in the history
  • Loading branch information
robert-nix committed Oct 6, 2015
1 parent 95707b0 commit 9c1a446
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mojoshader.c
Expand Up @@ -1582,7 +1582,7 @@ static void emit_BYTECODE_finalize(Context *ctx)
if (set_output(ctx, &ctx->mainline))
{
const size_t len = ((size_t) (ctx->tokens - ctx->orig_tokens)) * sizeof (uint32);
buffer_append(ctx->mainline, (const char *) ctx->tokens, len);
buffer_append(ctx->mainline, (const char *) ctx->orig_tokens, len);
} // if
} // emit_BYTECODE_finalize

Expand Down

0 comments on commit 9c1a446

Please sign in to comment.