From d565ea408e14ac0a40275057dd982424fa05db24 Mon Sep 17 00:00:00 2001 From: Dag Sverre Seljebotn Date: Wed, 6 May 2009 19:22:14 +0200 Subject: [PATCH] Whoops --- Cython/Includes/numpy.pxd | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Cython/Includes/numpy.pxd b/Cython/Includes/numpy.pxd index ea9921cc..298bb4e3 100644 --- a/Cython/Includes/numpy.pxd +++ b/Cython/Includes/numpy.pxd @@ -251,6 +251,7 @@ ctypedef npy_float64 float64_t ctypedef npy_long int_t ctypedef npy_longlong long_t + ctypedef npy_ulong uint_t ctypedef npy_ulonglong ulong_t @@ -271,7 +272,7 @@ cdef inline char* _util_dtypestring(dtype descr, char* f, char* end, int* offset cdef int delta_offset cdef tuple i cdef int endian_detector = 1 - cdef bint little_endian = ((&endian_detector)[0] == 0) + cdef bint little_endian = ((&endian_detector)[0] != 0) for i in descr.fields.itervalues(): child = i[0] -- 2.26.2