From 377810c338e2f84d0ebc4b44086eb8ecf5f6741d Mon Sep 17 00:00:00 2001 From: Thomas White Date: Thu, 19 Nov 2009 16:42:29 +0100 Subject: Add explicit casts when converting types --- src/detector.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/detector.c') diff --git a/src/detector.c b/src/detector.c index 6ca5e8e7..8467a322 100644 --- a/src/detector.c +++ b/src/detector.c @@ -125,7 +125,7 @@ static uint16_t *bloom(double *hdr_in, int width, int height) /* Turn into integer array of counts */ for ( x=0; xsfacs[x + image->width*y]; - intensity = val * conj(val); + intensity = (double)(val * conj(val)); /* What solid angle is subtended by this pixel? */ sa = sa_per_pixel * cos(image->twotheta[x + image->width*y]); -- cgit v1.2.3