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:
commit
0db6dce9ce
|
@ -32,6 +32,7 @@ jobs:
|
||||||
with:
|
with:
|
||||||
python-version: ${{ inputs.python-version }}
|
python-version: ${{ inputs.python-version }}
|
||||||
architecture: ${{ inputs.python-architecture }}
|
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
|
- name: Install nox
|
||||||
run: python -m pip install --upgrade pip && pip install nox
|
run: python -m pip install --upgrade pip && pip install nox
|
||||||
|
|
|
@ -21,7 +21,7 @@ mod bufferinfo {
|
||||||
use std::ptr;
|
use std::ptr;
|
||||||
|
|
||||||
#[cfg(PyPy)]
|
#[cfg(PyPy)]
|
||||||
const Py_MAX_NDIMS: usize = 36;
|
const Py_MAX_NDIMS: usize = if cfg!(Py_3_9) { 64 } else { 36 };
|
||||||
|
|
||||||
#[repr(C)]
|
#[repr(C)]
|
||||||
#[derive(Copy, Clone)]
|
#[derive(Copy, Clone)]
|
||||||
|
|
Loading…
Reference in New Issue