diff options
author | Tom Schouten <doelie@users.sourceforge.net> | 2006-09-01 13:45:31 +0000 |
---|---|---|
committer | Tom Schouten <doelie@users.sourceforge.net> | 2006-09-01 13:45:31 +0000 |
commit | 7591a024f184bd385d35583d19d86c1d5f2531ba (patch) | |
tree | 77aa0c44ccb700eb9a2b16e1b246e3c8026c40ed /modules/image_basic | |
parent | 91dd6b68f0f209ad015a303095bb1df018dca71e (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.c | 6 |
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]; } |