Skip to content
Snippets Groups Projects
Commit ff6c72a7 authored by Chad Hanna's avatar Chad Hanna
Browse files

gstlal_snglinspiral.c: fix unsigned integer issue causing incorrect epochs to be set

parent 740a8345
No related branches found
No related tags found
No related merge requests found
......@@ -234,7 +234,7 @@ GstBuffer *gstlal_snglinspiral_new_buffer_from_peak(struct gstlal_peak_state *in
XLALGPSAddGPS(&event->epoch, &parent->end);
parent->end = event->epoch;
XLALGPSAdd(&parent->end, (double) input->interpsamples[channel] / rate);
XLALGPSAdd(&event->epoch, (double) (input->samples[channel] - input->pad) / rate);
XLALGPSAdd(&event->epoch, ((gint) input->samples[channel] - (gint) input->pad) / (double) rate);
event->deltaT = 1. / rate;
parent->end_time_gmst = XLALGreenwichMeanSiderealTime(&parent->end);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment