Commit c31e18c0 authored by Robert Bradshaw's avatar Robert Bradshaw

Fix typedef and promotable exception values.

parent 6759b3bb
......@@ -5646,7 +5646,7 @@ class SimpleCallNode(CallNode):
exc_val = func_type.exception_value
exc_check = func_type.exception_check
if exc_val is not None:
exc_checks.append("%s == %s" % (self.result(), exc_val))
exc_checks.append("%s == %s" % (self.result(), func_type.return_type.cast_code(exc_val)))
if exc_check:
if self.nogil:
exc_checks.append("__Pyx_ErrOccurredWithGIL()")
......
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