Skip to content

Commit

Permalink
LP #587760: Handle tp_basicsize correctly.
Browse files Browse the repository at this point in the history
  • Loading branch information
hannosch committed Jun 16, 2010
1 parent f9428b5 commit 714cdcb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGES.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ Changelog
2.13.2 (unreleased)
-------------------

- LP #587760: Handle tp_basicsize correctly.

2.13.1 (2010-04-30)
-------------------
Expand Down
3 changes: 2 additions & 1 deletion src/Persistence/_Persistence.c
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,8 @@ init_Persistence(void)
if (Ptype.tp_bases == NULL)
return;
Ptype.tp_base = cPersistenceCAPI->pertype;

Ptype.tp_basicsize = cPersistenceCAPI->pertype->tp_basicsize;

Ptype.ob_type = ECExtensionClassType;
if (PyType_Ready(&Ptype) < 0)
return;
Expand Down

0 comments on commit 714cdcb

Please sign in to comment.