Skip to content
Snippets Groups Projects
Commit 489fd290 authored by Aaron Viets's avatar Aaron Viets
Browse files

lal_insertgap: Fixed bug in check_data() function.

parent 985d4150
No related branches found
No related tags found
No related merge requests found
Pipeline #
......@@ -150,8 +150,9 @@ static gboolean check_data_ ## DTYPE(DTYPE *data, double *bad_data_intervals, in
gboolean result = TRUE; \
for(i = 0; i < num_checks; i++) { \
if(bad_data_intervals) { \
result = FALSE; \
for(j = 0; j < array_length; j += 2) \
result &= data[i] > bad_data_intervals[j] && data[i] < bad_data_intervals[j + 1]; \
result |= data[i] > bad_data_intervals[j] && data[i] < bad_data_intervals[j + 1]; \
} \
if(remove_nan) \
result &= !isnan((double) data[i]); \
......
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