aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorThomas White <taw@bitwiz.org.uk>2011-08-24 17:38:42 -0700
committerThomas White <taw@physics.org>2012-02-22 15:27:37 +0100
commit4d3d0d192cbc376455a247753b886ba6d18d4216 (patch)
tree02fdbb99c5f60ece3c95e096b668112a58ba27b6 /src
parent672bfa52da16a68536305a5b92ec6e56fac9585d (diff)
Formatting
Diffstat (limited to 'src')
-rw-r--r--src/index.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/index.c b/src/index.c
index b9de9540..da4a5a31 100644
--- a/src/index.c
+++ b/src/index.c
@@ -116,10 +116,12 @@ void cleanup_indexing(IndexingPrivate **priv)
void map_all_peaks(struct image *image)
{
- int i;
+ int i, n;
+
+ n = image_feature_count(image->features);
/* Map positions to 3D */
- for ( i=0; i<image_feature_count(image->features); i++ ) {
+ for ( i=0; i<n; i++ ) {
struct imagefeature *f;
struct rvec r;