mojoshader_compiler.c
changeset 970 108ca3392d46
parent 969 ab7676343b60
child 971 58dcafbc908b
--- a/mojoshader_compiler.c	Tue Jan 11 03:35:26 2011 -0500
+++ b/mojoshader_compiler.c	Tue Jan 11 03:37:38 2011 -0500
@@ -324,7 +324,6 @@
     push_variable(ctx, NULL, NULL);
 } // push_scope
 
-
 static void pop_symbol(Context *ctx, SymbolMap *map)
 {
     SymbolScope *item = map->scope;
@@ -2417,6 +2416,7 @@
             return NULL;
 
         case MOJOSHADER_AST_STATEMENT_RETURN:
+            // !!! FIXME: type coercion to outer function's return type.
             type_check_ast(ctx, ast->returnstmt.expr);
             type_check_ast(ctx, ast->returnstmt.next);
             return NULL;