mojoshader_compiler.c
changeset 1003 05f4a65482f9
parent 1002 f47e8025c2a1
child 1004 650ee7802725
equal deleted inserted replaced
1002:f47e8025c2a1 1003:05f4a65482f9
  2923                 add_type_coercion(ctx, NULL, datatype,
  2923                 add_type_coercion(ctx, NULL, datatype,
  2924                                   &cases->expr, datatype2);
  2924                                   &cases->expr, datatype2);
  2925                 type_check_ast(ctx, cases->statement);
  2925                 type_check_ast(ctx, cases->statement);
  2926                 cases = cases->next;
  2926                 cases = cases->next;
  2927             } // while
  2927             } // while
       
  2928             type_check_ast(ctx, ast->switchstmt.next);
  2928             return NULL;
  2929             return NULL;
  2929         } // case
  2930         } // case
  2930 
  2931 
  2931         case MOJOSHADER_AST_SWITCH_CASE:
  2932         case MOJOSHADER_AST_SWITCH_CASE:
  2932             assert(0 && "Should be done by MOJOSHADER_AST_STATEMENT_SWITCH.");
  2933             assert(0 && "Should be done by MOJOSHADER_AST_STATEMENT_SWITCH.");