Whoops
authorDag Sverre Seljebotn <dagss@student.matnat.uio.no>
Wed, 6 May 2009 17:22:14 +0000 (19:22 +0200)
committerDag Sverre Seljebotn <dagss@student.matnat.uio.no>
Wed, 6 May 2009 17:22:14 +0000 (19:22 +0200)
Cython/Includes/numpy.pxd

index ea9921cc2827e4e6f75f07955ad81c5503cb3c0c..298bb4e32273c5b7b110dcf309f3a1f6010f14da 100644 (file)
@@ -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 = ((<char*>&endian_detector)[0] == 0)
+    cdef bint little_endian = ((<char*>&endian_detector)[0] != 0)
     
     for i in descr.fields.itervalues():
         child = i[0]