Changes in / [356bb95:29ad0ac]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/ResolvExpr/CastCost.cc
r356bb95 r29ad0ac 69 69 PointerType *destAsPointer = dynamic_cast< PointerType* >( dest ); 70 70 if ( destAsPointer && basicType->isInteger() ) { 71 // necessary for, e.g. unsigned long => void*72 cost = Cost ( 1, 0, 0 );71 //cost = Cost( 1, 0, 0 ); 72 cost = Cost::infinity; 73 73 } else { 74 74 ConversionCost::visit( basicType ); … … 89 89 } else if ( castResult < 0 ) { 90 90 cost = Cost::infinity; 91 //cost = Cost( 1, 0, 0 ); 91 92 } // if 92 93 } // if 93 94 } else if ( BasicType *destAsBasic = dynamic_cast< BasicType* >( dest ) ) { 94 95 if ( destAsBasic->isInteger() ) { 95 // necessary for, e.g. void* => unsigned long96 cost = Cost ( 1, 0, 0 );96 //cost = Cost( 1, 0, 0 ); 97 cost = Cost::infinity; 97 98 } // if 98 99 }
Note: See TracChangeset
for help on using the changeset viewer.