cext: fix a warning about differing const qualifiers on Windows
authorMatt Harbison <matt_harbison@yahoo.com>
Fri, 10 Aug 2018 00:28:07 -0400
changeset 39075 b935adb4b041
parent 39074 acd23830bcd6
child 39076 3f0ef8d19413
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
mercurial/cext/revlog.c
--- 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) {