Fixed incorrect fall-through between case blocks.
authorRyan C. Gordon <icculus@icculus.org>
Tue, 11 Jan 2011 03:34:08 -0500
changeset 968 fc6cebb74350
parent 967 51ce9d8a7533
child 969 ab7676343b60
Fixed incorrect fall-through between case blocks.
mojoshader_compiler.c
--- a/mojoshader_compiler.c	Tue Jan 11 03:32:17 2011 -0500
+++ b/mojoshader_compiler.c	Tue Jan 11 03:34:08 2011 -0500
@@ -2419,6 +2419,7 @@
         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.