From 7591a024f184bd385d35583d19d86c1d5f2531ba Mon Sep 17 00:00:00 2001 From: Tom Schouten Date: Fri, 1 Sep 2006 13:45:31 +0000 Subject: pdp current darcs merge svn path=/trunk/externals/pdp/; revision=5816 --- modules/image_basic/pdp_cheby.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'modules/image_basic') 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]; } -- cgit v1.2.1