diff options
author | Thomas White <taw@physics.org> | 2011-02-08 19:10:27 +0100 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2012-02-22 15:27:13 +0100 |
commit | e980ed54dc29e025587aba47390727c500aec8f1 (patch) | |
tree | a818f47cf8f00c034c59e7df8d825965d217d1c9 /src/geometry.c | |
parent | 606a2cd5432fe342d73ab8f37a1b383142c52fdb (diff) |
Work on making iteration work
Diffstat (limited to 'src/geometry.c')
-rw-r--r-- | src/geometry.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/geometry.c b/src/geometry.c index 9f9b953c..1cf839c2 100644 --- a/src/geometry.c +++ b/src/geometry.c @@ -263,10 +263,11 @@ double integrate_all(struct image *image, RefList *reflections) { double itot = 0.0; Reflection *refl; + RefListIterator *iter; - for ( refl = first_refl(reflections); + for ( refl = first_refl(reflections, &iter); refl != NULL; - refl = next_refl(refl) ) { + refl = next_refl(refl, iter) ) { float x, y, intensity; double xp, yp; |