aboutsummaryrefslogtreecommitdiff
path: root/src/image.c
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2009-11-19 09:50:08 +0100
committerThomas White <taw@physics.org>2009-11-19 09:50:08 +0100
commitcc4ee13ddf7633869408a78e0e0c092b1a03ebf2 (patch)
treef7776a511c46c5cacff62202f40ebb366828d144 /src/image.c
parente484862e22fc7f2f3394ef5a21f7955edf923ded (diff)
Misc tidy-up
Diffstat (limited to 'src/image.c')
-rw-r--r--src/image.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/image.c b/src/image.c
index 04d0f35d..7ce3564f 100644
--- a/src/image.c
+++ b/src/image.c
@@ -126,12 +126,12 @@ struct imagefeature *image_feature_closest(ImageFeatureList *flist,
for ( i=0; i<flist->n_features; i++ ) {
- double d;
+ double ds;
- d = distance(flist->features[i].x, flist->features[i].y, x, y);
+ ds = distance(flist->features[i].x, flist->features[i].y, x, y);
- if ( d < dmin ) {
- dmin = d;
+ if ( ds < dmin ) {
+ dmin = ds;
closest = i;
}