chiark / gitweb /
C++, STOGO, and nocedal fixes
[nlopt.git] / stogo / stogo.h
index 7ca57f30618ecc0b6451c96973dea7cb4fce54e2..211f3d840156694afe1d7f5c66fe0e1793f28b39 100644 (file)
@@ -10,7 +10,7 @@
 extern "C" {
 #endif
 
-typedef double (*objective_func)(int n, const double *x, double *grad,
+typedef double (*objective_func)(unsigned n, const double *x, double *grad,
                                 void *data);
 
 /* search for the global minimum of the function fgrad(n, x, grad, data)