Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/ResolvExpr/CastCost.cc

    r9fd97126 r52f85e0  
    6969                PointerType *destAsPointer = dynamic_cast< PointerType* >( dest );
    7070                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;
    7373                } else {
    7474                        ConversionCost::visit( basicType );
     
    8989                                } else if ( castResult < 0 ) {
    9090                                        cost = Cost::infinity;
     91                                        //cost = Cost( 1, 0, 0 );
    9192                                } // if
    9293                        } // if
    9394                } else if ( BasicType *destAsBasic = dynamic_cast< BasicType* >( dest ) ) {
    9495                        if ( destAsBasic->isInteger() ) {
    95                                 // necessary for, e.g. void* => unsigned long
    96                                 cost = Cost( 1, 0, 0 );
     96                                //cost = Cost( 1, 0, 0 );
     97                                cost = Cost::infinity;
    9798                        } // if
    9899                }
Note: See TracChangeset for help on using the changeset viewer.