Mercurial > hg-stable
changeset 49236:675594a0a71a
revlog: use %d to format int instead of %lu (issue6565)
The issue says gcc warns that the data types don't match. I couldn't reproduce
the warning locally for some reason, but this patch shouldn't break things.
Maybe %lu was simply a copy-paste error from 6b1eae313b2f
(https://phab.mercurial-scm.org/D10625).
author | Anton Shestakov <av6@dwimlabs.net> |
---|---|
date | Tue, 17 May 2022 21:49:36 +0400 |
parents | 8960d8eb747b |
children | d3d3495a5749 |
files | mercurial/cext/revlog.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/cext/revlog.c Tue Apr 06 03:24:26 2021 +0200 +++ b/mercurial/cext/revlog.c Tue May 17 21:49:36 2022 +0400 @@ -497,7 +497,7 @@ if (self->format_version != format_v1) { PyErr_Format(PyExc_RuntimeError, "version header should go in the docket, not the " - "index: %lu", + "index: %d", header); return NULL; }