Commit 36972a35 authored by Thomas White's avatar Thomas White
Browse files

Fix stack corruption

parent c61bb4fa
...@@ -21,7 +21,7 @@ ...@@ -21,7 +21,7 @@
#include "image.h" #include "image.h"
extern RefList *scale_intensities(struct image *images, int n, extern RefList *scale_intensities(struct image *images, int n,
RefList *reference); RefList *reference, int n_threads);
#endif /* HRS_SCALING_H */ #endif /* HRS_SCALING_H */
...@@ -492,7 +492,8 @@ int main(int argc, char *argv[]) ...@@ -492,7 +492,8 @@ int main(int argc, char *argv[])
/* Make initial estimates */ /* Make initial estimates */
STATUS("Performing initial scaling.\n"); STATUS("Performing initial scaling.\n");
full = scale_intensities(images, n_usable_patterns, reference); full = scale_intensities(images, n_usable_patterns, reference,
nthreads);
sr = sr_titlepage(images, n_usable_patterns, "scaling-report.pdf", sr = sr_titlepage(images, n_usable_patterns, "scaling-report.pdf",
infile, cmdline); infile, cmdline);
...@@ -530,7 +531,7 @@ int main(int argc, char *argv[]) ...@@ -530,7 +531,7 @@ int main(int argc, char *argv[])
/* Re-estimate all the full intensities */ /* Re-estimate all the full intensities */
reflist_free(full); reflist_free(full);
full = scale_intensities(images, n_usable_patterns, full = scale_intensities(images, n_usable_patterns,
reference); reference, nthreads);
sr_iteration(sr, i+1, images, n_usable_patterns, full); sr_iteration(sr, i+1, images, n_usable_patterns, full);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment