aboutsummaryrefslogtreecommitdiff
path: root/modules/image_basic
diff options
context:
space:
mode:
Diffstat (limited to 'modules/image_basic')
-rw-r--r--modules/image_basic/pdp_cheby.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/image_basic/pdp_cheby.c b/modules/image_basic/pdp_cheby.c
index 1bd1a16..6d382ad 100644
--- a/modules/image_basic/pdp_cheby.c
+++ b/modules/image_basic/pdp_cheby.c
@@ -44,14 +44,14 @@ typedef struct pdp_cheby_struct
static double pdp_cheby_mappingfunction(double f, void *params)
{
t_pdp_cheby *x = (t_pdp_cheby *)params;
- int index;
+ int indx;
/* if there's no array, return the identity function */
if (!x->x_vec) return f;
/* else interpolate the array */
- index = ((f + 1) * 0.5) * (x->x_nbpoints - 1);
- return x->x_vec[index];
+ indx = ((f + 1) * 0.5) * (x->x_nbpoints - 1);
+ return x->x_vec[indx];
}