cext: fix a warning about differing const qualifiers on Windows
The prototype takes a 'void *', but self->offsets is a 'const char **'.
mercurial/cext/revlog.c(2011) : warning C4090: 'function' : different
'const' qualifiers
--- a/mercurial/cext/revlog.c Fri Aug 10 00:14:47 2018 -0400
+++ b/mercurial/cext/revlog.c Fri Aug 10 00:28:07 2018 -0400
@@ -2005,7 +2005,7 @@
self->cache = NULL;
}
if (self->offsets) {
- PyMem_Free(self->offsets);
+ PyMem_Free((void *)self->offsets);
self->offsets = NULL;
}
if (self->nt != NULL) {