Changeset c333ed2 for src/ResolvExpr/ConversionCost.cc
- Timestamp:
- May 7, 2024, 7:04:17 PM (6 months ago)
- Branches:
- master
- Children:
- 0b6c1c9
- Parents:
- 164a6b6
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/ResolvExpr/ConversionCost.cc
r164a6b6 rc333ed2 283 283 cost = costCalc( basicType, integer, srcIsLvalue, symtab, env ); 284 284 } else if ( auto dstAsEnumInst = dynamic_cast< const ast::EnumInstType * >( dst ) ) { 285 if ( dstAsEnumInst->base && !dstAsEnumInst->base-> base) {285 if ( dstAsEnumInst->base && !dstAsEnumInst->base->isTyped ) { 286 286 cost = Cost::unsafe; 287 287 } … … 480 480 // assuming 0p is supposed to be used for pointers? 481 481 } else if ( auto dstAsEnumInst = dynamic_cast< const ast::EnumInstType * >( dst ) ) { 482 if ( dstAsEnumInst->base && !dstAsEnumInst->base-> base) {482 if ( dstAsEnumInst->base && !dstAsEnumInst->base->isTyped ) { 483 483 cost = Cost::unsafe; 484 484 } … … 501 501 } 502 502 } else if ( auto dstAsEnumInst = dynamic_cast< const ast::EnumInstType * >( dst ) ) { 503 if ( dstAsEnumInst->base && !dstAsEnumInst->base-> base) {503 if ( dstAsEnumInst->base && !dstAsEnumInst->base->isTyped ) { 504 504 cost = Cost::unsafe; 505 505 }
Note: See TracChangeset
for help on using the changeset viewer.