From 37efecfe6d49d6be0daa5f5c2f9f9fe516d3d82d Mon Sep 17 00:00:00 2001 From: Robert Bradshaw Date: Sat, 13 Nov 2010 23:23:57 -0800 Subject: [PATCH] Fix large integer exception return codes. --- Cython/Compiler/Nodes.py | 1 + 1 file changed, 1 insertion(+) 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: -- 2.26.2