Changeset 4ab9536


Ignore:
Timestamp:
Sep 15, 2016, 3:36:41 PM (8 years ago)
Author:
Rob Schluntz <rschlunt@…>
Branches:
ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, deferred_resn, demangler, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, resolv-new, with_gc
Children:
12bc63a
Parents:
aa8f9df
Message:

handle conversion of tuples with different sizes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/ResolvExpr/ConversionCost.cc

    raa8f9df r4ab9536  
    236236                        std::list< Type* >::const_iterator srcIt = tupleType->get_types().begin();
    237237                        std::list< Type* >::const_iterator destIt = destAsTuple->get_types().begin();
    238                         while ( srcIt != tupleType->get_types().end() ) {
     238                        while ( srcIt != tupleType->get_types().end() && destIt != destAsTuple->get_types().end() ) {
    239239                                Cost newCost = conversionCost( *srcIt++, *destIt++, indexer, env );
    240240                                if ( newCost == Cost::infinity ) {
Note: See TracChangeset for help on using the changeset viewer.