Skip to content
Snippets Groups Projects
Commit 8d297f3563be authored by Julien Cristau's avatar Julien Cristau
Browse files

revlog: fix more type confusion in index_replace_sidedata_info (issue6580)

We were telling python that "rev" was a Py_ssize_t (via the "n" format),
but it was actually an int.

Differential Revision: https://phab.mercurial-scm.org/D11335
parent 16346f3d446d
No related branches found
No related tags found
No related merge requests found
......@@ -535,7 +535,8 @@
static PyObject *index_replace_sidedata_info(indexObject *self, PyObject *args)
{
uint64_t offset_flags, sidedata_offset;
int rev, sidedata_comp_len;
Py_ssize_t rev;
int sidedata_comp_len;
char comp_mode;
char *data;
#if LONG_MAX == 0x7fffffffL
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment