aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorSylvain Munaut <tnt@246tNt.com>2013-03-03 09:15:07 +0100
committerSylvain Munaut <tnt@246tNt.com>2013-03-03 09:58:32 +0100
commite97293f89b4b02e6e857fbd6fb9ac60cbbd0595d (patch)
tree89410b26ca8ad6ff73a3bd736d77bd647dc11722 /src
parentdcf64e6a3005fd9b8d9c34942f0cbf6650c9c114 (diff)
iqbal: Remove a Doxygen warning
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
Diffstat (limited to 'src')
-rw-r--r--src/iqbal.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/iqbal.c b/src/iqbal.c
index 8b2dffa..2d848f4 100644
--- a/src/iqbal.c
+++ b/src/iqbal.c
@@ -197,8 +197,7 @@ _iqbal_objfn_value(struct _iqbal_state *state, float x[2])
static void
_iqbal_objfn_gradient(struct _iqbal_state *state, float x[2], float v, float grad[2])
{
- #define GRAD_STEP 0.001f
-
+ const float GRAD_STEP = 0.001f;
float xd[2], vd[2];
xd[0] = x[0] + GRAD_STEP; xd[1] = x[1];