Patchwork [2,of,6,v2] parsers: use bitmask type consistently in find_gca_candidates

login
register
mail settings
Submitter Henrik Stuart
Date Sept. 9, 2014, 5:51 p.m.
Message ID <f8504d79534d8753abcc.1410285098@yggdrasil>
Download mbox | patch
Permalink /patch/5740/
State Accepted
Headers show

Comments

Henrik Stuart - Sept. 9, 2014, 5:51 p.m.
# HG changeset patch
# User Henrik Stuart <hg@hstuart.dk>
# Date 1410199612 -7200
#      Mon Sep 08 20:06:52 2014 +0200
# Node ID f8504d79534d8753abccaa0f69f1100f8e2a3d4d
# Parent  e6db2b7bcb27e528bef28932babd08dd4c05aae6
parsers: use bitmask type consistently in find_gca_candidates

Normalized type usage in find_gca_candidates triggered by warning from
Microsoft Visual C++ 2008.

Patch

diff -r e6db2b7bcb27 -r f8504d79534d mercurial/parsers.c
--- a/mercurial/parsers.c	Mon Sep 08 20:04:06 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)