Skip to content

Commit e301f23

Browse files
committed
troubleshoot travis
1 parent bed3eed commit e301f23

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

pandas/_libs/src/numpy_helper.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ The full license is in the LICENSE file, distributed with this software.
1616
#include "numpy/arrayscalars.h"
1717

1818

19+
PANDAS_INLINE npy_int64 get_nat(void) { return NPY_MIN_INT64; }
20+
1921
PANDAS_INLINE int assign_value_1d(PyArrayObject* ap, Py_ssize_t _i,
2022
PyObject* v) {
2123
npy_intp i = (npy_intp)_i;

pandas/_libs/tslibs/util.pxd

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,9 @@ cdef extern from "numpy/ndarrayobject.h":
3939
bint PyArray_IsIntegerScalar(obj) nogil
4040
bint PyArray_Check(obj) nogil
4141

42-
cdef extern from "numpy/npy_common.h":
43-
int64_t NPY_MIN_INT64
4442

43+
cdef extern from "../src/numpy_helper.h":
44+
int64_t get_nat()
4545

4646
cdef extern from "../src/headers/stdint.h":
4747
enum: UINT8_MAX
@@ -58,10 +58,6 @@ cdef extern from "../src/headers/stdint.h":
5858
enum: INT64_MIN
5959

6060

61-
cdef inline int64_t get_nat():
62-
return NPY_MIN_INT64
63-
64-
6561
cdef inline int import_array() except -1:
6662
_import_array()
6763

0 commit comments

Comments
 (0)