Write out unknown token value in hexadecimal.
authorRyan C. Gordon <icculus@icculus.org>
Tue, 03 Feb 2009 09:04:48 -0500
changeset 546 d6f3a82d140e
parent 545 6fa65cddbaad
child 547 90ea52905fca
Write out unknown token value in hexadecimal.
mojoshader.c
--- a/mojoshader.c	Tue Feb 03 09:03:42 2009 -0500
+++ b/mojoshader.c	Tue Feb 03 09:04:48 2009 -0500
@@ -6708,7 +6708,7 @@
     else if ((rc = parse_instruction_token(ctx)) != 0)
         return rc;
 
-    failf(ctx, "unknown token (%u)", (uint) *ctx->tokens);
+    failf(ctx, "unknown token (0x%x)", (uint) *ctx->tokens);
     return 1;  // good luck!
 } // parse_token