Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/ResolvExpr/ConversionCost.cc

    reb7586e r13de4478  
    284284        } else if ( auto dstAsEnumInst = dynamic_cast< const ast::EnumInstType * >( dst ) ) {
    285285                if ( dstAsEnumInst->base && !dstAsEnumInst->base->base ) {
    286                         cost = Cost::unsafe;
     286                        cost = Cost::zero;
     287                        cost.incUnsafe();
    287288                }
    288289        }
     
    481482        } else if ( auto dstAsEnumInst = dynamic_cast< const ast::EnumInstType * >( dst ) ) {
    482483                if ( dstAsEnumInst->base && !dstAsEnumInst->base->base ) {
    483                         cost = Cost::unsafe;
     484                        cost = Cost::zero;
     485                        cost.incUnsafe();
    484486                }
    485487        }
     
    502504        } else if ( auto dstAsEnumInst = dynamic_cast< const ast::EnumInstType * >( dst ) ) {
    503505                if ( dstAsEnumInst->base && !dstAsEnumInst->base->base ) {
    504                         cost = Cost::unsafe;
     506                        cost = Cost::zero;
     507                        cost.incUnsafe();
    505508                }
    506509        }
Note: See TracChangeset for help on using the changeset viewer.