From 99e6385361a836df2dbb8fa6c340e4e963ba3da4 Mon Sep 17 00:00:00 2001 From: Thomas White Date: Tue, 16 Mar 2010 13:53:44 +0100 Subject: Fixes for standards compliance --- data/diffraction.cl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'data') diff --git a/data/diffraction.cl b/data/diffraction.cl index 63d807c2..a42cfc93 100644 --- a/data/diffraction.cl +++ b/data/diffraction.cl @@ -117,14 +117,14 @@ float2 get_sfac(global float2 *sfacs, float16 cell, float4 q) /* Return a silly value if indices are out of range */ if ( (abs(h) > INDMAX) || (abs(k) > INDMAX) || (abs(l) > INDMAX) ) { - return 100000.0; + return (float2)(100000.0, 0.0); } h = (h>=0) ? h : h+IDIM; k = (k>=0) ? k : k+IDIM; l = (l>=0) ? l : l+IDIM; - if ( (h>=IDIM) || (k>=IDIM) || (l>=IDIM) ) return 100000.0; + if ( (h>=IDIM) || (k>=IDIM) || (l>=IDIM) ) return (float2)(100000.0, 0.0); idx = h + (IDIM*k) + (IDIM*IDIM*l); -- cgit v1.2.3