Changes in src/ResolvExpr/CastCost.cc [52f85e0:1521de20]
- File:
-
- 1 edited
-
src/ResolvExpr/CastCost.cc (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/ResolvExpr/CastCost.cc
r52f85e0 r1521de20 9 9 // Author : Richard C. Bilson 10 10 // Created On : Sun May 17 06:57:43 2015 11 // Last Modified By : Peter A. Buhr12 // Last Modified On : Tue Feb 2 15:34:36 201613 // Update Count : 711 // Last Modified By : Rob Schluntz 12 // Last Modified On : Mon Oct 05 14:48:45 2015 13 // Update Count : 5 14 14 // 15 15 … … 69 69 PointerType *destAsPointer = dynamic_cast< PointerType* >( dest ); 70 70 if ( destAsPointer && basicType->isInteger() ) { 71 //cost = Cost( 1, 0, 0 ); 72 cost = Cost::infinity; 71 cost = Cost( 1, 0, 0 ); 73 72 } else { 74 73 ConversionCost::visit( basicType ); … … 88 87 cost = Cost( 0, 0, 1 ); 89 88 } else if ( castResult < 0 ) { 90 cost = Cost::infinity; 91 //cost = Cost( 1, 0, 0 ); 89 cost = Cost( 1, 0, 0 ); 92 90 } // if 93 91 } // if 94 92 } else if ( BasicType *destAsBasic = dynamic_cast< BasicType* >( dest ) ) { 95 93 if ( destAsBasic->isInteger() ) { 96 //cost = Cost( 1, 0, 0 ); 97 cost = Cost::infinity; 94 cost = Cost( 1, 0, 0 ); 98 95 } // if 99 96 }
Note:
See TracChangeset
for help on using the changeset viewer.