mojoshader_assembler.c
changeset 506 c1fe96a851f6
parent 505 fd397ceab529
child 508 f45abd96ad7b
--- a/mojoshader_assembler.c	Fri Dec 12 03:59:21 2008 -0500
+++ b/mojoshader_assembler.c	Fri Dec 12 04:01:34 2008 -0500
@@ -1457,9 +1457,9 @@
         return fail(ctx, "Expected version string");
     else if (nexttoken(ctx, 0, 0, 0, 0) == FAIL)
         return FAIL;
-    else if (strcasecmp(ctx->token, "x") != 0)
+    else if (strcasecmp(ctx->token, "x") == 0)
         minor = 1;
-    else if (strcasecmp(ctx->token, "sw") != 0)
+    else if (strcasecmp(ctx->token, "sw") == 0)
         minor = 255;
     else if (!ui32fromstr(ctx->token, &minor))
         return fail(ctx, "Expected version string");