changeset 30167:1e5ff5ae1d2b

dirs: use PyVarObject_HEAD_INIT This makes a compiler warning go away on Python 3.
author Gregory Szorc <gregory.szorc@gmail.com>
date Thu, 13 Oct 2016 13:14:14 +0200
parents 102e6ef5bb3a
children 1a327889c13c
files mercurial/dirs.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/dirs.c	Thu Oct 13 09:27:37 2016 +0100
+++ b/mercurial/dirs.c	Thu Oct 13 13:14:14 2016 +0200
@@ -291,7 +291,7 @@
 	{NULL} /* Sentinel */
 };
 
-static PyTypeObject dirsType = { PyObject_HEAD_INIT(NULL) };
+static PyTypeObject dirsType = { PyVarObject_HEAD_INIT(NULL, 0) };
 
 void dirs_module_init(PyObject *mod)
 {