author | Ryan C. Gordon <icculus@icculus.org> |
Tue, 03 Feb 2009 08:59:38 -0500 | |
changeset 543 | 98742b1d8a4a |
parent 542 | a56d3bfd2e36 |
child 544 | f829f48e5214 |
--- a/mojoshader_assembler.c Tue Feb 03 04:14:00 2009 -0500 +++ b/mojoshader_assembler.c Tue Feb 03 08:59:38 2009 -0500 @@ -2002,7 +2002,7 @@ output_comments(ctx, comments, comment_count, symbols, symbol_count); // parse out the rest of the tokens after the version token... - while (nexttoken(ctx, 1, 1, 0, 1)) + while ((nexttoken(ctx, 1, 1, 0, 1)) && (!ctx->eof)) { if (isfail(ctx)) {