- File:
-
- 1 edited
-
src/ResolvExpr/ConversionCost.cc (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/ResolvExpr/ConversionCost.cc
reb7586e r13de4478 284 284 } else if ( auto dstAsEnumInst = dynamic_cast< const ast::EnumInstType * >( dst ) ) { 285 285 if ( dstAsEnumInst->base && !dstAsEnumInst->base->base ) { 286 cost = Cost::unsafe; 286 cost = Cost::zero; 287 cost.incUnsafe(); 287 288 } 288 289 } … … 481 482 } else if ( auto dstAsEnumInst = dynamic_cast< const ast::EnumInstType * >( dst ) ) { 482 483 if ( dstAsEnumInst->base && !dstAsEnumInst->base->base ) { 483 cost = Cost::unsafe; 484 cost = Cost::zero; 485 cost.incUnsafe(); 484 486 } 485 487 } … … 502 504 } else if ( auto dstAsEnumInst = dynamic_cast< const ast::EnumInstType * >( dst ) ) { 503 505 if ( dstAsEnumInst->base && !dstAsEnumInst->base->base ) { 504 cost = Cost::unsafe; 506 cost = Cost::zero; 507 cost.incUnsafe(); 505 508 } 506 509 }
Note:
See TracChangeset
for help on using the changeset viewer.