Show More
@@ -1995,19 +1995,19 b' static PyObject *find_deepest(indexObjec' | |||||
1995 |
|
1995 | |||
1996 | for (i = 0; i < 2; i++) { |
|
1996 | for (i = 0; i < 2; i++) { | |
1997 | int p = parents[i]; |
|
1997 | int p = parents[i]; | |
1998 |
long |
|
1998 | long sp; | |
1999 | int dp; |
|
1999 | int dp; | |
2000 |
|
2000 | |||
2001 | if (p == -1) |
|
2001 | if (p == -1) | |
2002 | continue; |
|
2002 | continue; | |
2003 |
|
2003 | |||
2004 | dp = depth[p]; |
|
2004 | dp = depth[p]; | |
2005 |
|
|
2005 | sp = seen[p]; | |
2006 | if (dp <= dv) { |
|
2006 | if (dp <= dv) { | |
2007 | depth[p] = dv + 1; |
|
2007 | depth[p] = dv + 1; | |
2008 | if (sp != sv) { |
|
2008 | if (sp != sv) { | |
2009 | interesting[sv] += 1; |
|
2009 | interesting[sv] += 1; | |
2010 |
|
|
2010 | seen[p] = sv; | |
2011 | if (sp) { |
|
2011 | if (sp) { | |
2012 | interesting[sp] -= 1; |
|
2012 | interesting[sp] -= 1; | |
2013 | if (interesting[sp] == 0) |
|
2013 | if (interesting[sp] == 0) | |
@@ -2016,7 +2016,7 b' static PyObject *find_deepest(indexObjec' | |||||
2016 | } |
|
2016 | } | |
2017 | } |
|
2017 | } | |
2018 | else if (dv == dp - 1) { |
|
2018 | else if (dv == dp - 1) { | |
2019 | nsp = sp | sv; |
|
2019 | long nsp = sp | sv; | |
2020 | if (nsp == sp) |
|
2020 | if (nsp == sp) | |
2021 | continue; |
|
2021 | continue; | |
2022 | seen[p] = nsp; |
|
2022 | seen[p] = nsp; |
General Comments 0
You need to be logged in to leave comments.
Login now