8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 63f90a8 commit 09934b2Copy full SHA for 09934b2
numpy/core/src/multiarray/scalarapi.c
@@ -35,7 +35,7 @@ scalar_value(PyObject *scalar, PyArray_Descr *descr)
35
{
36
int type_num;
37
int align;
38
- npy_intp memloc;
+ uintptr_t memloc;
39
if (descr == NULL) {
40
descr = PyArray_DescrFromScalar(scalar);
41
type_num = descr->type_num;
@@ -168,7 +168,7 @@ scalar_value(PyObject *scalar, PyArray_Descr *descr)
168
* Use the alignment flag to figure out where the data begins
169
* after a PyObject_HEAD
170
*/
171
- memloc = (npy_intp)scalar;
+ memloc = (uintptr_t)scalar;
172
memloc += sizeof(PyObject);
173
/* now round-up to the nearest alignment value */
174
align = descr->alignment;
0 commit comments