mirror of
https://github.com/python/cpython.git
synced 2026-04-15 16:21:24 +00:00
gh-146636: Py_mod_abi mandatory for modules created from slots array (GH-146855)
This commit is contained in:
parent
97babb8ef7
commit
a86963b3e2
11 changed files with 153 additions and 19 deletions
|
|
@ -735,15 +735,15 @@ int PyABIInfo_Check(PyABIInfo *info, const char *module_name)
|
|||
return _abiinfo_raise(
|
||||
module_name,
|
||||
"incompatible future stable ABI version (%d.%d)",
|
||||
((info->abi_version) >> 24) % 0xff,
|
||||
((info->abi_version) >> 16) % 0xff);
|
||||
((info->abi_version) >> 24) & 0xff,
|
||||
((info->abi_version) >> 16) & 0xff);
|
||||
}
|
||||
if (info->abi_version < Py_PACK_VERSION(3, 2)) {
|
||||
return _abiinfo_raise(
|
||||
module_name,
|
||||
"invalid stable ABI version (%d.%d)",
|
||||
((info->abi_version) >> 24) % 0xff,
|
||||
((info->abi_version) >> 16) % 0xff);
|
||||
((info->abi_version) >> 24) & 0xff,
|
||||
((info->abi_version) >> 16) & 0xff);
|
||||
}
|
||||
}
|
||||
if (info->flags & PyABIInfo_INTERNAL) {
|
||||
|
|
@ -758,8 +758,8 @@ int PyABIInfo_Check(PyABIInfo *info, const char *module_name)
|
|||
return _abiinfo_raise(
|
||||
module_name,
|
||||
"incompatible ABI version (%d.%d)",
|
||||
((info->abi_version) >> 24) % 0xff,
|
||||
((info->abi_version) >> 16) % 0xff);
|
||||
((info->abi_version) >> 24) & 0xff,
|
||||
((info->abi_version) >> 16) & 0xff);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue