gstlal-inspiral  0.4.2
 All Classes Namespaces Files Functions Variables Pages
gstlal_peakfinder.c.patch
1 diff --git a/gstlal/lib/gstlal/gstlal_peakfinder.c b/gstlal/lib/gstlal/gstlal_peakfinder.c
2 index 1eb81ba..34a26db 100644
3 --- a/gstlal/lib/gstlal/gstlal_peakfinder.c
4 +++ b/gstlal/lib/gstlal/gstlal_peakfinder.c
5 @@ -228,7 +228,7 @@ int gstlal_series_around_peak(struct gstlal_peak_state *state, void *data, void
6  #undef ABSFUNC
7 
8  /* float complex */
9 -#define ABSFUNC(x) (cabsf(x))
10 +#define ABSFUNC(x) sqrt(((float *) &x)[0] * ((float *) &x)[0] + ((float *) &x)[1] * ((float *) &x)[1])
11  #define TYPE_STRING float_complex
12  #define XLAL_TYPE_STRING COMPLEX8
13  #define TYPE float complex