Commit 0c34edb2 authored by Jeppe Dakin's avatar Jeppe Dakin Committed by GitHub

Split a combined assert in two to avoid an unused C temp variable when...

Split a combined assert in two to avoid an unused C temp variable when assertions are disabled. (GH-3870)
parent b11674ba
......@@ -1471,7 +1471,8 @@ cdef bytes format_from_typeinfo(__Pyx_TypeInfo *type):
cdef Py_ssize_t i
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'^'
......
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