提交 b1e23a05 编写于 作者: S stevenj

return more descriptive error code

darcs-hash:20070829053137-c8de0-85589d746420853b8a4b73042e291455539e8801.gz
上级 b55f4e74
......@@ -174,7 +174,7 @@ static nlopt_result divide_rect(double *rdiv, params *p)
rnew[1] = fv[2*isort[i]+k];
if (!rb_tree_insert(&p->rtree, rnew)) {
free(rnew);
return NLOPT_FAILURE;
return NLOPT_OUT_OF_MEMORY;
}
}
}
......@@ -205,7 +205,7 @@ static nlopt_result divide_rect(double *rdiv, params *p)
FUNCTION_EVAL(rnew[1], rnew + 2, p, rnew);
if (!rb_tree_insert(&p->rtree, rnew)) {
free(rnew);
return NLOPT_FAILURE;
return NLOPT_OUT_OF_MEMORY;
}
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册