aboutsummaryrefslogtreecommitdiff
path: root/modules/image_basic
diff options
context:
space:
mode:
authorTom Schouten <doelie@users.sourceforge.net>2006-09-01 13:45:31 +0000
committerTom Schouten <doelie@users.sourceforge.net>2006-09-01 13:45:31 +0000
commit7591a024f184bd385d35583d19d86c1d5f2531ba (patch)
tree77aa0c44ccb700eb9a2b16e1b246e3c8026c40ed /modules/image_basic
parent91dd6b68f0f209ad015a303095bb1df018dca71e (diff)
pdp current darcs merge
svn path=/trunk/externals/pdp/; revision=5816
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];
}