Commit 7a6a3654 authored by Robert Bradshaw's avatar Robert Bradshaw Committed by Stefan Behnel

Dissallow bint type for memoryviews.

parent 8d79bfe0
......@@ -180,6 +180,9 @@ def valid_memslice_dtype(dtype, i=0):
if dtype.is_complex and dtype.real_type.is_int:
return False
if dtype is PyrexTypes.c_bint_type:
return False
if dtype.is_struct and dtype.kind == 'struct':
for member in dtype.scope.var_entries:
if not valid_memslice_dtype(member.type):
......
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