Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Actually, let's make assembly error positions be option base 1.
  • Loading branch information
icculus committed Dec 10, 2008
1 parent 57253e1 commit e8d8fb7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion mojoshader.h
Expand Up @@ -256,7 +256,7 @@ typedef struct MOJOSHADER_parseData
* error, and -1 if there was an error before processing started. If >= 0,
* MOJOSHADER_parse() sets this to the byte offset (starting at zero) into
* the bytecode you supplied, and MOJOSHADER_assemble() sets this to a
* a line number in the source code you supplied (starting at zero).
* a line number in the source code you supplied (starting at one).
*/
int error_position;

Expand Down
1 change: 1 addition & 0 deletions mojoshader_assembler.c
Expand Up @@ -1465,6 +1465,7 @@ static Context *build_context(const char *source, MOJOSHADER_malloc m,
ctx->free = f;
ctx->malloc_data = d;
ctx->source = source;
ctx->linenum = 1;

return ctx;
} // build_context
Expand Down

0 comments on commit e8d8fb7

Please sign in to comment.