Index: src/GenPoly/GenPoly.cc
===================================================================
--- src/GenPoly/GenPoly.cc	(revision a954e32c77154a2dee66b8d701ff81aa1b83c139)
+++ src/GenPoly/GenPoly.cc	(revision 7350ff97adaef2b46f0f42ff27d7b92617a742d7)
@@ -28,5 +28,5 @@
 			for ( std::list< Expression* >::iterator param = params.begin(); param != params.end(); ++param ) {
 				TypeExpr *paramType = dynamic_cast< TypeExpr* >( *param );
-				assert(paramType && "Aggregate parameters should be type expressions");
+				assertf(paramType, "Aggregate parameters should be type expressions");
 				if ( isPolyType( paramType->get_type(), env ) ) return true;
 			}
