Commit 270044f8 authored by Jeppe Dakin's avatar Jeppe Dakin Committed by Stefan Behnel

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 b2b759ff
...@@ -1466,7 +1466,8 @@ cdef bytes format_from_typeinfo(__Pyx_TypeInfo *type): ...@@ -1466,7 +1466,8 @@ cdef bytes format_from_typeinfo(__Pyx_TypeInfo *type):
cdef bytes part, result cdef bytes part, result
if type.typegroup == 'S': 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: if type.flags & __PYX_BUF_FLAGS_PACKED_STRUCT:
alignment = b'^' 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