From: Robert Bradshaw Date: Sun, 14 Nov 2010 07:23:57 +0000 (-0800) Subject: Fix large integer exception return codes. X-Git-Tag: 0.14.alpha0~155 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=37efecfe6d49d6be0daa5f5c2f9f9fe516d3d82d;p=cython.git Fix large integer exception return codes. --- diff --git a/Cython/Compiler/Nodes.py b/Cython/Compiler/Nodes.py index 878ad29a..f5a2bb73 100644 --- a/Cython/Compiler/Nodes.py +++ b/Cython/Compiler/Nodes.py @@ -592,6 +592,7 @@ class CFuncDeclaratorNode(CDeclaratorNode): "Exception value must be a Python exception or cdef function with no arguments.") exc_val = self.exception_value else: + self.exception_value = self.exception_value.coerce_to(return_type, env) if self.exception_value.analyse_const_expression(env): exc_val = self.exception_value.get_constant_c_result_code() if exc_val is None: