--- a/APSCpp/APSCpp.cpp
+++ b/APSCpp/APSCpp.cpp
@@ -392,7 +392,7 @@
 	ArrayList * globalNaturalKeypoints = 0;
 	int i;
 
-	if( mode == 0 ) globalNaturalKeypoints = ArrayList_new0 (KeypointN_delete);
+	if( mode == 0 ) globalNaturalKeypoints = ArrayList_new0 ((void *) KeypointN_delete);
 
 	if( pdi ){ // build remapping function at input scale
 	  CamLens * psp, * pdp;