From: Dag Sverre Seljebotn Date: Wed, 6 May 2009 17:22:14 +0000 (+0200) Subject: Whoops X-Git-Tag: 0.11.2.rc1~10^2~34 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=d565ea408e14ac0a40275057dd982424fa05db24;p=cython.git Whoops --- 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]