Skip to content

Commit

Permalink
doc: fix compile error on "shoddy" example extension (GH-216)
Browse files Browse the repository at this point in the history
(cherry picked from commit fb8fe72)
  • Loading branch information
methane committed Feb 21, 2017
1 parent d9b3cdd commit 51a477c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions Doc/includes/setup.py
Expand Up @@ -5,4 +5,5 @@
Extension("noddy2", ["noddy2.c"]),
Extension("noddy3", ["noddy3.c"]),
Extension("noddy4", ["noddy4.c"]),
Extension("shoddy", ["shoddy.c"]),
])
2 changes: 1 addition & 1 deletion Doc/includes/shoddy.c
Expand Up @@ -31,7 +31,7 @@ Shoddy_init(Shoddy *self, PyObject *args, PyObject *kwds)


static PyTypeObject ShoddyType = {
PyObject_HEAD_INIT(NULL)
PyVarObject_HEAD_INIT(NULL, 0)
"shoddy.Shoddy", /* tp_name */
sizeof(Shoddy), /* tp_basicsize */
0, /* tp_itemsize */
Expand Down

0 comments on commit 51a477c

Please sign in to comment.