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