mirror of
https://github.com/boostorg/python.git
synced 2026-01-24 06:02:14 +00:00
.ob_type -> Py_TYPE() usage change
[SVN r54646]
This commit is contained in:
@@ -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;
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user