Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fixed incorrect fall-through between case blocks.
  • Loading branch information
icculus committed Jan 11, 2011
1 parent 7e9503c commit 9f1c715
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions mojoshader_compiler.c
Expand Up @@ -2419,6 +2419,7 @@ static const MOJOSHADER_astDataType *type_check_ast(Context *ctx, void *_ast)
case MOJOSHADER_AST_STATEMENT_RETURN:
type_check_ast(ctx, ast->returnstmt.expr);
type_check_ast(ctx, ast->returnstmt.next);
return NULL;

case MOJOSHADER_AST_COMPUNIT_FUNCTION:
// !!! FIXME: this is totally broken for function overloading.
Expand Down

0 comments on commit 9f1c715

Please sign in to comment.