Skip to content

Commit

Permalink
Fixed incorrect strcmp() tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
icculus committed Dec 12, 2008
1 parent 9e11e11 commit 675ceab
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mojoshader_assembler.c
Expand Up @@ -1457,9 +1457,9 @@ static int parse_version_token(Context *ctx)
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");
Expand Down

0 comments on commit 675ceab

Please sign in to comment.