Navigation Menu

Skip to content

Commit

Permalink
Handle endlines on DEF statements.
Browse files Browse the repository at this point in the history
With "DEF cC, X, Y, Z, W", this would fail if W was a whole number.
  • Loading branch information
icculus committed Dec 10, 2008
1 parent 23433bd commit 57253e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mojoshader_assembler.c
Expand Up @@ -917,7 +917,7 @@ static int parse_num(Context *ctx, const int floatok, uint32 *token)
return fail(ctx, "Expected number");

uint32 fraction = 0;
if (nexttoken(ctx, 0, 1, 0, 0) == FAIL)
if (nexttoken(ctx, 0, 1, 1, 1) == FAIL)
return FAIL;
else if (strcmp(ctx->token, ".") != 0)
pushback(ctx); // whole number
Expand Down

0 comments on commit 57253e1

Please sign in to comment.