Index: src/ResolvExpr/CastCost.cc
===================================================================
--- src/ResolvExpr/CastCost.cc	(revision baba5d886358df2b646d535ffff7050e2be25641)
+++ src/ResolvExpr/CastCost.cc	(revision 9fd971261b416940675a43d484b27561490d06e4)
@@ -69,6 +69,6 @@
 		PointerType *destAsPointer = dynamic_cast< PointerType* >( dest );
 		if ( destAsPointer && basicType->isInteger() ) {
-			//cost = Cost( 1, 0, 0 );
-			cost = Cost::infinity;
+			// necessary for, e.g. unsigned long => void*
+			cost = Cost( 1, 0, 0 );
 		} else {
 			ConversionCost::visit( basicType );
@@ -89,11 +89,10 @@
 				} else if ( castResult < 0 ) {
 					cost = Cost::infinity;
-					//cost = Cost( 1, 0, 0 );
 				} // if
 			} // if
 		} else if ( BasicType *destAsBasic = dynamic_cast< BasicType* >( dest ) ) {
 			if ( destAsBasic->isInteger() ) {
-				//cost = Cost( 1, 0, 0 );
-				cost = Cost::infinity;
+				// necessary for, e.g. void* => unsigned long
+				cost = Cost( 1, 0, 0 );
 			} // if
 		}
