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

login
register
mail settings
Submitter Bryan O'Sullivan
Date Sept. 16, 2013, 7:27 p.m.
Message ID <5e25d71a58cc93627f63.1379359650@australite.local>
Download mbox | patch
Permalink /patch/2501/
State Accepted
Commit 5e25d71a58cc93627f635bae699602dc7bb8afcf
Headers show

Comments

Bryan O'Sullivan - Sept. 16, 2013, 7:27 p.m.
# HG changeset patch
# User Bryan O'Sullivan <bryano@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

Patch

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;