Skip to content
Snippets Groups Projects
Commit d3d3495a authored by Anton Shestakov's avatar Anton Shestakov
Browse files

revlog: use appropriate format char for int ("i" instead of "I")

From https://docs.python.org/3.8/c-api/arg.html#numbers :

i (int) [int]
Convert a Python integer to a plain C int.

I (int) [unsigned int]
Convert a Python integer to a C unsigned int, without overflow checking.
parent 675594a0
No related branches found
No related tags found
2 merge requests!168branching: merge default into stable,!112revlog: use %d to format int instead of %lu (issue6565)
......@@ -491,7 +491,7 @@
{
int header;
char out[4];
if (!PyArg_ParseTuple(args, "I", &header)) {
if (!PyArg_ParseTuple(args, "i", &header)) {
return NULL;
}
if (self->format_version != format_v1) {
......
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