Merge pull request #3739 from davidhewitt/pypy-buffer-hidden-fields

fix size of pypy private fields in Py_buffer definition
This commit is contained in:
David Hewitt 2024-01-12 16:27:10 +00:00 committed by GitHub
commit 0db6dce9ce
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View File

@ -32,6 +32,7 @@ jobs:
with:
python-version: ${{ inputs.python-version }}
architecture: ${{ inputs.python-architecture }}
check-latest: ${{ startsWith(inputs.python-version, 'pypy') }} # PyPy can have FFI changes within Python versions, which creates pain in CI
- name: Install nox
run: python -m pip install --upgrade pip && pip install nox

View File

@ -21,7 +21,7 @@ mod bufferinfo {
use std::ptr;
#[cfg(PyPy)]
const Py_MAX_NDIMS: usize = 36;
const Py_MAX_NDIMS: usize = if cfg!(Py_3_9) { 64 } else { 36 };
#[repr(C)]
#[derive(Copy, Clone)]