[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[gnuastro-commits] master 695ef20: Statistics: looping over contours inc
From: |
Mohammad Akhlaghi |
Subject: |
[gnuastro-commits] master 695ef20: Statistics: looping over contours includes last |
Date: |
Mon, 14 Oct 2019 22:13:10 -0400 (EDT) |
branch: master
commit 695ef20b95c38dc348508abc0376011398e71903
Author: Mohammad Akhlaghi <address@hidden>
Commit: Mohammad Akhlaghi <address@hidden>
Statistics: looping over contours includes last
Until now because of a typo, the last node in the list of pixel indexs was
ignored because of an extra `->next' in defining the loop!
With this commit, it is corrected.
---
bin/statistics/contour.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/bin/statistics/contour.c b/bin/statistics/contour.c
index f6e90f8..ffdb2e0 100644
--- a/bin/statistics/contour.c
+++ b/bin/statistics/contour.c
@@ -84,7 +84,7 @@ contour_pgfplots(gal_data_t *edgeindexs, gal_data_t *input,
float level,
size_t *s, *sf, w=input->dsize[1];
/* Go through each connected edge and add the contour positions. */
- for(tmp=edgeindexs; tmp->next!=NULL; tmp=tmp->next)
+ for(tmp=edgeindexs; tmp!=NULL; tmp=tmp->next)
if(tmp->size>10)
{
if(input->wcs)
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [gnuastro-commits] master 695ef20: Statistics: looping over contours includes last,
Mohammad Akhlaghi <=