chiark / gitweb /
bug fix: fix return value in set min/max objective
authorstevenj <stevenj@alum.mit.edu>
Wed, 8 Aug 2012 15:52:19 +0000 (11:52 -0400)
committerstevenj <stevenj@alum.mit.edu>
Wed, 8 Aug 2012 15:52:19 +0000 (11:52 -0400)
Ignore-this: f52cbe2ff3c98d53de6f08185493b85b

darcs-hash:20120808155219-c8de0-38a56084114dcc06040700a283f5f21a684a38e1.gz

api/options.c

index 4a4936e78aa90f8779bf4b51334e775947b10af3..8b75c15b538c1b767a4535ba1f851aade34c8078 100644 (file)
@@ -231,7 +231,7 @@ nlopt_result NLOPT_STDCALL nlopt_set_precond_min_objective(nlopt_opt opt,
 nlopt_result NLOPT_STDCALL nlopt_set_min_objective(nlopt_opt opt,
                                                   nlopt_func f, void *f_data)
 {
-     nlopt_set_precond_min_objective(opt, f, NULL, f_data);
+     return nlopt_set_precond_min_objective(opt, f, NULL, f_data);
 }
 
 nlopt_result NLOPT_STDCALL nlopt_set_precond_max_objective(nlopt_opt opt, 
@@ -253,7 +253,7 @@ nlopt_result NLOPT_STDCALL nlopt_set_precond_max_objective(nlopt_opt opt,
 nlopt_result NLOPT_STDCALL nlopt_set_max_objective(nlopt_opt opt,
                                                   nlopt_func f, void *f_data)
 {
-     nlopt_set_precond_max_objective(opt, f, NULL, f_data);
+     return nlopt_set_precond_max_objective(opt, f, NULL, f_data);
 }
 
 /*************************************************************************/