Submitter | Henrik Stuart |
---|---|
Date | Sept. 9, 2014, 5:51 p.m. |
Message ID | <620d7f5d8ff74d46159e.1410285099@yggdrasil> |
Download | mbox | patch |
Permalink | /patch/5741/ |
State | Accepted |
Headers | show |
Comments
Patch
diff -r f8504d79534d -r 620d7f5d8ff7 mercurial/parsers.c --- a/mercurial/parsers.c Mon Sep 08 20:06:52 2014 +0200 +++ b/mercurial/parsers.c Mon Sep 08 20:13:15 2014 +0200 @@ -881,7 +881,7 @@ if (nothead[i]) continue; - head = PyInt_FromLong(i); + head = PyInt_FromSsize_t(i); if (head == NULL || PyList_Append(heads, head) == -1) { Py_XDECREF(head); goto bail;