From 1a2847b66c04188cdfdae61846cd331bc47c3ac6 Mon Sep 17 00:00:00 2001 From: Jonathan Lin Date: Mon, 16 Oct 2023 22:44:16 -1000 Subject: [PATCH] more explicity typing --- AOloopControl_IOtools/pl_column_sum.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/AOloopControl_IOtools/pl_column_sum.c b/AOloopControl_IOtools/pl_column_sum.c index 6d8e1373..434f70b6 100644 --- a/AOloopControl_IOtools/pl_column_sum.c +++ b/AOloopControl_IOtools/pl_column_sum.c @@ -92,12 +92,13 @@ static errno_t compute_function() INSERT_STD_PROCINFO_COMPUTEFUNC_START { // JON YOU GET TO WORK HERE - int i; + uint32_t i; for (i = 0; i < sizeoutx; i++){ float tot = 0.0; - int j; + uint32_t j; for (j = 0; j < sizeouty; j++) { - tot += wfsin.im->array.F[i*sizeouty+j]; + uint64_t pixindex = i * sizeouty + j; + tot += wfsin.im->array.F[pixindex]; } wfsout.im->array.F[i] = tot; }