File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -165,7 +165,7 @@ ndbuf_free(ndbuf_t *ndbuf)
165165 Py_buffer * base = & ndbuf -> base ;
166166
167167 PyMem_XFree (ndbuf -> data );
168- PyMem_XFree (base -> format );
168+ PyMem_XFree (( void * ) base -> format );
169169 PyMem_XFree (base -> shape );
170170 PyMem_XFree (base -> strides );
171171 PyMem_XFree (base -> suboffsets );
@@ -666,7 +666,7 @@ ndarray_as_list(NDArrayObject *nd)
666666 Py_ssize_t simple_strides [1 ];
667667 char * item = NULL ;
668668 PyObject * format ;
669- char * fmt = base -> format ;
669+ const char * fmt = base -> format ;
670670
671671 base = & nd -> head -> base ;
672672
Original file line number Diff line number Diff line change @@ -123,7 +123,7 @@ mbuf_dealloc(PyObject *_self)
123123 assert (self -> exports == 0 );
124124 mbuf_release (self );
125125 if (self -> flags & _Py_MANAGED_BUFFER_FREE_FORMAT )
126- PyMem_Free (self -> master .format );
126+ PyMem_Free (( void * ) self -> master .format );
127127 PyObject_GC_Del (self );
128128}
129129
You can’t perform that action at this time.
0 commit comments