mirror of
https://github.com/python/cpython.git
synced 2025-11-01 18:51:43 +00:00
replace PyXXX_Length calls with PyXXX_Size calls
This commit is contained in:
parent
6253f83b0a
commit
03657cfdb0
14 changed files with 30 additions and 29 deletions
|
|
@ -176,13 +176,13 @@ python2param(int resource, ALpv *param, PyObject *value, ALparamInfo *pinfo)
|
|||
case AL_INT32_ELEM:
|
||||
case AL_RESOURCE_ELEM:
|
||||
case AL_ENUM_ELEM:
|
||||
param->sizeIn = PySequence_Length(value);
|
||||
param->sizeIn = PySequence_Size(value);
|
||||
param->value.ptr = PyMem_NEW(int, param->sizeIn);
|
||||
stepsize = sizeof(int);
|
||||
break;
|
||||
case AL_INT64_ELEM:
|
||||
case AL_FIXED_ELEM:
|
||||
param->sizeIn = PySequence_Length(value);
|
||||
param->sizeIn = PySequence_Size(value);
|
||||
param->value.ptr = PyMem_NEW(long long, param->sizeIn);
|
||||
stepsize = sizeof(long long);
|
||||
break;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue