cext: mark tuple_format as a constant
authorYuya Nishihara <yuya@tcha.org>
Sat, 03 Mar 2018 06:41:52 -0500
changeset 36621 4015b9248da0
parent 36620 186c6df3a373
child 36622 0297f9c4caee
cext: mark tuple_format as a constant Just for clarity.
mercurial/cext/revlog.c
--- a/mercurial/cext/revlog.c	Sat Mar 03 06:18:47 2018 -0500
+++ b/mercurial/cext/revlog.c	Sat Mar 03 06:41:52 2018 -0500
@@ -87,9 +87,9 @@
 static Py_ssize_t inline_scan(indexObject *self, const char **offsets);
 
 #if LONG_MAX == 0x7fffffffL
-static char *tuple_format = PY23("Kiiiiiis#", "Kiiiiiiy#");
+static const char *const tuple_format = PY23("Kiiiiiis#", "Kiiiiiiy#");
 #else
-static char *tuple_format = PY23("kiiiiiis#", "kiiiiiiy#");
+static const char *const tuple_format = PY23("kiiiiiis#", "kiiiiiiy#");
 #endif
 
 /* A RevlogNG v1 index entry is 64 bytes long. */