Commit d4e15255 authored by Stefan Behnel's avatar Stefan Behnel

Avoid useless coercion checks in BytesNode when we already know that they do not apply.

parent 6430ac43
......@@ -1467,7 +1467,6 @@ class BytesNode(ConstNode):
else:
# not const => use plain C string literal and cast to mutable type
literal = self.value.as_c_string_literal()
# C++ may require a cast
result = typecast(self.type, PyrexTypes.c_void_ptr_type, literal)
self.result_code = result
......
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