Commit 36939ee3 authored by Stefan Behnel's avatar Stefan Behnel

make it easier for the C compiler to prune some useless error checking code in...

make it easier for the C compiler to prune some useless error checking code in cython.array constructor
parent 9d33c746
......@@ -126,7 +126,7 @@ cdef class array:
if not self.ndim:
raise ValueError("Empty shape tuple for cython.array")
if self.itemsize <= 0:
if itemsize <= 0:
raise ValueError("itemsize <= 0 for cython.array")
if isinstance(format, unicode):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment