2
0
mirror of https://github.com/boostorg/python.git synced 2026-01-23 17:52:17 +00:00

.ob_type -> Py_TYPE() usage change

[SVN r54646]
This commit is contained in:
Haoyu Bai
2009-07-04 16:18:56 +00:00
parent 28c7185654
commit c219ae50c4

View File

@@ -63,7 +63,7 @@ struct extract_member
{
static MemberType& execute(InstanceType& c)
{
(void)c.ob_type; // static assertion
(void)Py_TYPE(&c); // static assertion
return c.*member;
}
};
@@ -75,7 +75,7 @@ struct extract_identity
{
static InstanceType& execute(InstanceType& c)
{
(void)c.ob_type; // static assertion
(void)Py_TYPE(&c); // static assertion
return c;
}
};