Skip to content

Commit e554edf

Browse files
committed
updated types to remove compiler warnings
1 parent 144db22 commit e554edf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/_arraykit.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3535,7 +3535,7 @@ first_true_2d(PyObject *Py_UNUSED(m), PyObject *args, PyObject *kwargs)
35353535
npy_intp count_row = PyArray_DIM(array_ind, 0);
35363536
npy_intp count_col = PyArray_DIM(array_ind, 1);
35373537

3538-
ldiv_t div_col = ldiv(count_col, 4); // quot, rem
3538+
ldiv_t div_col = ldiv((long)count_col, 4); // quot, rem
35393539

35403540
npy_intp dims_post = {count_row};
35413541
PyArrayObject *array_pos = (PyArrayObject*)PyArray_EMPTY(
@@ -3926,7 +3926,7 @@ get_new_indexers_and_screen(PyObject *Py_UNUSED(m), PyObject *args, PyObject *kw
39263926
return NULL;
39273927
}
39283928

3929-
PyObject *num_unique_pyint = PyLong_FromLong(num_unique);
3929+
PyObject *num_unique_pyint = PyLong_FromLong((long)num_unique);
39303930
if (num_unique_pyint == NULL) {
39313931
goto fail;
39323932
}

0 commit comments

Comments
 (0)