# HG changeset patch # User Matt Mackall # Date 1366221446 18000 # Node ID 48d6f436363e87192988c4f9a60252d1ddd7e4fe # Parent b5ca14163742e163b17cb41c67b70e5786ce5c3f parsers: fix variable declaration position issue diff -r b5ca14163742 -r 48d6f436363e mercurial/parsers.c --- 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;