File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
doc/source/reference/c-api
numpy/_core/src/multiarray/stringdtype Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -3387,7 +3387,7 @@ Data Type Promotion and Inspection
3387
3387
----------------------------------
3388
3388
3389
3389
.. c:function:: PyArray_DTypeMeta *PyArray_CommonDType( \
3390
- PyArray_DTypeMeta *dtype1, PyArray_DTypeMeta *dtype2)
3390
+ const PyArray_DTypeMeta *dtype1, const PyArray_DTypeMeta *dtype2)
3391
3391
3392
3392
This function defines the common DType operator. Note that the common DType
3393
3393
will not be ``object `` (unless one of the DTypes is ``object ``). Similar to
@@ -3414,7 +3414,7 @@ Data Type Promotion and Inspection
3414
3414
For example promoting ``float16 `` with any other float, integer, or unsigned
3415
3415
integer again gives a floating point number.
3416
3416
3417
- .. c :function :: PyArray_Descr *PyArray_GetDefaultDescr (PyArray_DTypeMeta *DType)
3417
+ .. c :function :: PyArray_Descr *PyArray_GetDefaultDescr (const PyArray_DTypeMeta *DType)
3418
3418
3419
3419
Given a DType class, returns the default instance (descriptor). This checks
3420
3420
for a ``singleton`` first and only calls the ``default_descr`` function if
Original file line number Diff line number Diff line change @@ -286,7 +286,7 @@ NpyString_free_allocator(npy_string_allocator *allocator)
286
286
* allocator mutex is held, as doing so may cause deadlocks.
287
287
*/
288
288
NPY_NO_EXPORT npy_string_allocator *
289
- NpyString_acquire_allocator (PyArray_StringDTypeObject * descr )
289
+ NpyString_acquire_allocator (const PyArray_StringDTypeObject * descr )
290
290
{
291
291
if (!PyThread_acquire_lock (descr -> allocator -> allocator_lock , NOWAIT_LOCK )) {
292
292
PyThread_acquire_lock (descr -> allocator -> allocator_lock , WAIT_LOCK );
You can’t perform that action at this time.
0 commit comments