Index: src/ResolvExpr/CastCost.cc
===================================================================
--- src/ResolvExpr/CastCost.cc	(revision afc1045a9ddab4e6d7c524844fc6895bf4ef52ec)
+++ src/ResolvExpr/CastCost.cc	(revision 34b76a8f7e7cecb6ec388a5420403fc4bc109211)
@@ -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
 		}
