Patchwork D7964: cext: change two more vars to Py_ssize_t in manifest.c

login
register
mail settings
Submitter phabricator
Date Jan. 21, 2020, 10:06 p.m.
Message ID <1ab8a17ab87d297ff41db6edd151bda8@localhost.localdomain>
Download mbox | patch
Permalink /patch/44564/
State Not Applicable
Headers show

Comments

phabricator - Jan. 21, 2020, 10:06 p.m.
Closed by commit rHG0e198f1f276a: cext: change two more vars to Py_ssize_t in manifest.c (authored by spectral).
This revision was automatically updated to reflect the committed changes.
This revision was not accepted when it landed; it landed in state "Needs Review".

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D7964?vs=19498&id=19501

CHANGES SINCE LAST ACTION
  https://phab.mercurial-scm.org/D7964/new/

REVISION DETAIL
  https://phab.mercurial-scm.org/D7964

AFFECTED FILES
  mercurial/cext/manifest.c

CHANGE DETAILS




To: spectral, #hg-reviewers
Cc: mercurial-devel

Patch

diff --git a/mercurial/cext/manifest.c b/mercurial/cext/manifest.c
--- a/mercurial/cext/manifest.c
+++ b/mercurial/cext/manifest.c
@@ -80,7 +80,7 @@ 
 	PyObject *hash = nodeof(l);
 
 	/* 40 for hash, 1 for null byte, 1 for newline */
-	size_t hplen = plen + 42;
+	Py_ssize_t hplen = plen + 42;
 	Py_ssize_t flen = l->len - hplen;
 	PyObject *flags;
 	PyObject *tup;
@@ -525,7 +525,7 @@ 
 	PyObject *pyflags;
 	char *flags;
 	Py_ssize_t flen;
-	size_t dlen;
+	Py_ssize_t dlen;
 	char *dest;
 	int i;
 	line new;