changeset 39112:b935adb4b041

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
author Matt Harbison <matt_harbison@yahoo.com>
date Fri, 10 Aug 2018 00:28:07 -0400
parents acd23830bcd6
children 3f0ef8d19413
files mercurial/cext/revlog.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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) {