diff --git a/slsDetectorSoftware/mythenDetectorServer/trimming_funcs.c b/slsDetectorSoftware/mythenDetectorServer/trimming_funcs.c index ac6550eb0..b86e9f3f4 100755 --- a/slsDetectorSoftware/mythenDetectorServer/trimming_funcs.c +++ b/slsDetectorSoftware/mythenDetectorServer/trimming_funcs.c @@ -168,11 +168,11 @@ int choose_vthresh_and_vtrim(int countlim, int nsigma, int im) { int *fifodata; - double vthreshmean, vthreshSTDev; + float vthreshmean, vthreshSTDev; int *thrmi, *thrma; - double c; - double b=BVTRIM; - double a=AVTRIM; + float c; + float b=BVTRIM; + float a=AVTRIM; int *trim; int ich, imod, ichan; int nvalid=0; @@ -447,7 +447,7 @@ int trim_with_level(int countlim, int im) { int kth_smallest(int *a, int n, int k) { register int i,j,l,m ; - register double x ; + register float x ; l=0 ; m=n-1 ; while (l