Commit fb7c70c2 authored by Robert Bradshaw's avatar Robert Bradshaw

Fix bug with infered const temp vars.

parent c3e67bdf
......@@ -580,6 +580,8 @@ class FunctionState(object):
A C string referring to the variable is returned.
"""
if type.is_const:
type = type.const_base_type
if not type.is_pyobject and not type.is_memoryviewslice:
# Make manage_ref canonical, so that manage_ref will always mean
# a decref is needed.
......
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