Fixed incorrect strcmp() tests.
authorRyan C. Gordon <icculus@icculus.org>
Fri, 12 Dec 2008 04:01:34 -0500
changeset 506 c1fe96a851f6
parent 505 fd397ceab529
child 507 0dd7a913f498
Fixed incorrect strcmp() tests.
mojoshader_assembler.c
--- 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");