diff --git a/src/stcal/ramp_fitting/src/slope_fitter.c b/src/stcal/ramp_fitting/src/slope_fitter.c index 5be800e4f..c15f23d84 100644 --- a/src/stcal/ramp_fitting/src/slope_fitter.c +++ b/src/stcal/ramp_fitting/src/slope_fitter.c @@ -677,10 +677,13 @@ is_pix_in_list(struct pixel_ramp * pr) { // (1014, 422), const int len = 1; - npy_intp rows[len] = {1014}; - npy_intp cols[len] = {422}; + npy_intp rows[len]; + npy_intp cols[len]; int k; + rows[0] = 1014; + cols[0] = 422; + for (k=0; krow==rows[k] && pr->col==cols[k]) { return 1;