[PATCH] revlog: fix size of Python nodetree object
Yuya Nishihara
yuya at tcha.org
Tue Sep 4 04:38:25 UTC 2018
# HG changeset patch
# User Yuya Nishihara <yuya at tcha.org>
# Date 1536035361 -32400
# Tue Sep 04 13:29:21 2018 +0900
# Node ID b69fbdd77c405dc755a45ddf93c6388a4a1915ae
# Parent 1cbe19eb496d2dd8d4c8cae849a513348fefadf2
revlog: fix size of Python nodetree object
Follows up 9f097214fbf3.
diff --git a/mercurial/cext/revlog.c b/mercurial/cext/revlog.c
--- a/mercurial/cext/revlog.c
+++ b/mercurial/cext/revlog.c
@@ -1249,7 +1249,7 @@ static PyMethodDef ntobj_methods[] = {
static PyTypeObject nodetreeType = {
PyVarObject_HEAD_INIT(NULL, 0) /* header */
"parsers.nodetree", /* tp_name */
- sizeof(nodetree) , /* tp_basicsize */
+ sizeof(nodetreeObject) , /* tp_basicsize */
0, /* tp_itemsize */
(destructor)ntobj_dealloc, /* tp_dealloc */
0, /* tp_print */
More information about the Mercurial-devel
mailing list