Mercurial > public > mercurial-scm > hg
diff mercurial/parsers.c @ 19030:48d6f436363e
parsers: fix variable declaration position issue
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Wed, 17 Apr 2013 12:57:26 -0500 |
parents | 5bae936764bb |
children | 365b0de17c1c |
line wrap: on
line diff
--- a/mercurial/parsers.c Wed Apr 17 21:06:48 2013 +0400 +++ b/mercurial/parsers.c Wed Apr 17 12:57:26 2013 -0500 @@ -1192,6 +1192,7 @@ PyObject *gca = PyList_New(0); int i, v, interesting, left; int maxrev = -1; + long sp; bitmask *seen; for (i = 0; i < revcount; i++) { @@ -1241,7 +1242,7 @@ int p = parents[i]; if (p == -1) continue; - const long sp = seen[p]; + sp = seen[p]; if (sv < poison) { if (sp == 0) { seen[p] = sv;