revlog: use %d to format int instead of %lu (issue6565)
authorAnton Shestakov <av6@dwimlabs.net>
Tue, 17 May 2022 21:49:36 +0400
changeset 49211 675594a0a71a
parent 49207 8960d8eb747b
child 49212 d3d3495a5749
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).
mercurial/cext/revlog.c
--- 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;
 	}