amael-ls / code_article3

0 stars 0 forks source link

Patch::getNonZeroCohorts check iterator #3

Open amael-ls opened 4 years ago

amael-ls commented 4 years ago

Check the iterator lim_it in

Patch::getNonZeroCohorts(std::vector<Cohort *> nonZeroCohorts)

lim_it might be one iteration to far, which can lead either to a segmentation fault or to a random cohort value (which might not be zero)

amael-ls commented 4 years ago

It seems lim_it takes the correct value. I leave this issue open for now in case of...