From a6e064b18ed513d341d8793acbc485d7bc291827 Mon Sep 17 00:00:00 2001 From: Thomas White Date: Sat, 27 Mar 2010 12:48:38 +0100 Subject: Fix reading of reflection lists --- src/detector.c | 2 +- src/reflections.c | 12 +++++++----- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/src/detector.c b/src/detector.c index 6fb36b7d..e8eade98 100644 --- a/src/detector.c +++ b/src/detector.c @@ -87,7 +87,7 @@ void record_image(struct image *image, int do_poisson) ERROR("Infinity at %i,%i\n", x, y); } if ( intensity < 0.0 ) { - ERROR("Infinity at %i,%i\n", x, y); + ERROR("Negative at %i,%i\n", x, y); } if ( isnan(intensity) ) { ERROR("NaN at %i,%i\n", x, y); diff --git a/src/reflections.c b/src/reflections.c index 90f8b116..deba0f8d 100644 --- a/src/reflections.c +++ b/src/reflections.c @@ -55,7 +55,7 @@ void write_reflections(const char *filename, unsigned int *counts, for ( l=-INDMAX; l