Skip to content

Commit

Permalink
Apparently "vs.2.0" is equivalent to "vs_2_0"
Browse files Browse the repository at this point in the history
  • Loading branch information
icculus committed Dec 10, 2008
1 parent b2f5c3f commit 9f34f86
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mojoshader_assembler.c
Expand Up @@ -1429,7 +1429,7 @@ static int parse_version_token(Context *ctx)
uint32 major = 0;
if (nexttoken(ctx, 0, 0, 0, 0) == FAIL)
return FAIL;
else if (strcmp(ctx->token, "_") != 0)
else if ((strcmp(ctx->token, "_") != 0) && (strcmp(ctx->token, ".") != 0))
return fail(ctx, "Expected version string");
else if (nexttoken(ctx, 0, 0, 0, 0) == FAIL)
return FAIL;
Expand All @@ -1439,7 +1439,7 @@ static int parse_version_token(Context *ctx)
uint32 minor = 0;
if (nexttoken(ctx, 0, 0, 0, 0) == FAIL)
return FAIL;
else if (strcmp(ctx->token, "_") != 0)
else if ((strcmp(ctx->token, "_") != 0) && (strcmp(ctx->token, ".") != 0))
return fail(ctx, "Expected version string");
else if (nexttoken(ctx, 0, 0, 0, 0) == FAIL)
return FAIL;
Expand Down

0 comments on commit 9f34f86

Please sign in to comment.