diff options
Diffstat (limited to 'Cython/Utility/MemoryView.pyx')
-rw-r--r-- | Cython/Utility/MemoryView.pyx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Cython/Utility/MemoryView.pyx b/Cython/Utility/MemoryView.pyx index 3c92d5db9..6ca5fab9b 100644 --- a/Cython/Utility/MemoryView.pyx +++ b/Cython/Utility/MemoryView.pyx @@ -1466,7 +1466,8 @@ cdef bytes format_from_typeinfo(__Pyx_TypeInfo *type): cdef bytes part, result if type.typegroup == 'S': - assert type.fields != NULL and type.fields.type != NULL + assert type.fields != NULL + assert type.fields.type != NULL if type.flags & __PYX_BUF_FLAGS_PACKED_STRUCT: alignment = b'^' |