Handle endlines on DEF statements.
authorRyan C. Gordon <icculus@icculus.org>
Wed, 10 Dec 2008 04:22:06 -0500
changeset 488 1a318d011c00
parent 487 99302a771d1a
child 489 414b70b829d7
Handle endlines on DEF statements. With "DEF cC, X, Y, Z, W", this would fail if W was a whole number.
mojoshader_assembler.c
--- a/mojoshader_assembler.c	Wed Dec 10 04:21:04 2008 -0500
+++ b/mojoshader_assembler.c	Wed Dec 10 04:22:06 2008 -0500
@@ -917,7 +917,7 @@
         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