Mercurial > hg-stable
changeset 36650:4015b9248da0
cext: mark tuple_format as a constant
Just for clarity.
author | Yuya Nishihara <yuya@tcha.org> |
---|---|
date | Sat, 03 Mar 2018 06:41:52 -0500 |
parents | 186c6df3a373 |
children | 0297f9c4caee |
files | mercurial/cext/revlog.c |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- 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. */