From 5446ec2921d6247611978cd17c66e215421b20c4 Mon Sep 17 00:00:00 2001 From: Robert Bradshaw Date: Wed, 26 Jun 2013 22:23:07 -0700 Subject: [PATCH] Dissallow bint type for memoryviews. --- Cython/Compiler/MemoryView.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Cython/Compiler/MemoryView.py b/Cython/Compiler/MemoryView.py index e18c57f..9adb194 100644 --- a/Cython/Compiler/MemoryView.py +++ b/Cython/Compiler/MemoryView.py @@ -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): -- 2.7.4