parsers: use bitmask type consistently in find_gca_candidates
authorHenrik Stuart <hg@hstuart.dk>
Mon, 08 Sep 2014 20:06:52 +0200
changeset 22399 9f490afcb067
parent 22398 402e5fba6509
child 22400 888bc106de83
parsers: use bitmask type consistently in find_gca_candidates Normalized type usage in find_gca_candidates triggered by warning from Microsoft Visual C++ 2008.
mercurial/parsers.c
--- a/mercurial/parsers.c	Sat Aug 30 02:10:29 2014 +0200
+++ b/mercurial/parsers.c	Mon Sep 08 20:06:52 2014 +0200
@@ -1304,7 +1304,7 @@
 	PyObject *gca = PyList_New(0);
 	int i, v, interesting;
 	int maxrev = -1;
-	long sp;
+	bitmask sp;
 	bitmask *seen;
 
 	if (gca == NULL)
@@ -1327,7 +1327,7 @@
 	interesting = revcount;
 
 	for (v = maxrev; v >= 0 && interesting; v--) {
-		long sv = seen[v];
+		bitmask sv = seen[v];
 		int parents[2];
 
 		if (!sv)