projects
/
platform
/
upstream
/
python-cython.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1100f5d
)
Minor cleanup in dtypestring parsing.
author
Robert Bradshaw
<robertwb@gmail.com>
Tue, 21 May 2013 05:38:19 +0000
(22:38 -0700)
committer
Robert Bradshaw
<robertwb@gmail.com>
Tue, 21 May 2013 05:38:19 +0000
(22:38 -0700)
Cython/Includes/numpy.pxd
patch
|
blob
|
history
diff --git
a/Cython/Includes/numpy.pxd
b/Cython/Includes/numpy.pxd
index
e4e4710
..
d9e39be
100644
(file)
--- a/
Cython/Includes/numpy.pxd
+++ b/
Cython/Includes/numpy.pxd
@@
-795,7
+795,7
@@
cdef inline char* _util_dtypestring(dtype descr, char* f, char* end, int* offset
fields = descr.fields[childname]
child, new_offset = fields
- if (end - f) - (new_offset - offset[0]) < 15:
+ if (end - f) -
<int>
(new_offset - offset[0]) < 15:
raise RuntimeError(u"Format string allocated too short, see comment in numpy.pxd")
if ((child.byteorder == c'>' and little_endian) or