[PATCH 1 of 3 in crew] parsers: state is a char, not an int

Bryan O'Sullivan bos at serpentine.com
Mon Sep 16 14:27:30 CDT 2013


# HG changeset patch
# User Bryan O'Sullivan <bryano at fb.com>
# Date 1379358628 25200
#      Mon Sep 16 12:10:28 2013 -0700
# Node ID 5e25d71a58cc93627f635bae699602dc7bb8afcf
# Parent  2b2a2e858fb7f7427e85598ce1db588fc835e86e
parsers: state is a char, not an int

diff --git a/mercurial/parsers.c b/mercurial/parsers.c
--- a/mercurial/parsers.c
+++ b/mercurial/parsers.c
@@ -158,8 +158,8 @@ static PyObject *parse_dirstate(PyObject
 {
 	PyObject *dmap, *cmap, *parents = NULL, *ret = NULL;
 	PyObject *fname = NULL, *cname = NULL, *entry = NULL;
-	char *str, *cur, *end, *cpos;
-	int state, mode, size, mtime;
+	char state, *str, *cur, *end, *cpos;
+	int mode, size, mtime;
 	unsigned int flen;
 	int len;
 


More information about the Mercurial-devel mailing list