Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/ResolvExpr/CastCost.cc

    r52f85e0 r1521de20  
    99// Author           : Richard C. Bilson
    1010// Created On       : Sun May 17 06:57:43 2015
    11 // Last Modified By : Peter A. Buhr
    12 // Last Modified On : Tue Feb  2 15:34:36 2016
    13 // Update Count     : 7
     11// Last Modified By : Rob Schluntz
     12// Last Modified On : Mon Oct 05 14:48:45 2015
     13// Update Count     : 5
    1414//
    1515
     
    6969                PointerType *destAsPointer = dynamic_cast< PointerType* >( dest );
    7070                if ( destAsPointer && basicType->isInteger() ) {
    71                         //cost = Cost( 1, 0, 0 );
    72                         cost = Cost::infinity;
     71                        cost = Cost( 1, 0, 0 );
    7372                } else {
    7473                        ConversionCost::visit( basicType );
     
    8887                                        cost = Cost( 0, 0, 1 );
    8988                                } else if ( castResult < 0 ) {
    90                                         cost = Cost::infinity;
    91                                         //cost = Cost( 1, 0, 0 );
     89                                        cost = Cost( 1, 0, 0 );
    9290                                } // if
    9391                        } // if
    9492                } else if ( BasicType *destAsBasic = dynamic_cast< BasicType* >( dest ) ) {
    9593                        if ( destAsBasic->isInteger() ) {
    96                                 //cost = Cost( 1, 0, 0 );
    97                                 cost = Cost::infinity;
     94                                cost = Cost( 1, 0, 0 );
    9895                        } // if
    9996                }
Note: See TracChangeset for help on using the changeset viewer.