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

bdiff: fix yet more fallout from xdiff long/int64 conversion (issue5885)

"l" in Py_BuildValue's format string means long, so passing int64_t
instead results in fireworks on 32bit architectures.

Differential Revision: https://phab.mercurial-scm.org/D3538
parent edb28a6d95b7
No related branches found
No related tags found
No related merge requests found
......@@ -261,7 +261,7 @@
void *priv)
{
PyObject *rl = (PyObject *)priv;
PyObject *m = Py_BuildValue("llll", a1, a2, b1, b2);
PyObject *m = Py_BuildValue("LLLL", a1, a2, b1, b2);
if (!m)
return -1;
if (PyList_Append(rl, m) != 0) {
......
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