From: Robert Bradshaw Date: Thu, 9 Oct 2008 22:13:51 +0000 (-0700) Subject: fix for boolean optimization X-Git-Tag: 0.9.9.2.beta~47 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=460802bce606494a25ecf1e4ddd7d94b23f0f5b0;p=cython.git fix for boolean optimization --- diff --git a/Cython/Compiler/ExprNodes.py b/Cython/Compiler/ExprNodes.py index 939a15a3..c5d3a51a 100644 --- a/Cython/Compiler/ExprNodes.py +++ b/Cython/Compiler/ExprNodes.py @@ -4409,7 +4409,7 @@ class CoerceToPyTypeNode(CoercionNode): gil_message = "Converting to Python object" def coerce_to_boolean(self, env): - return self.arg.coerce_to_boolean(env) + return self.arg.coerce_to_boolean(env).coerce_to_temp(env) def analyse_types(self, env): # The arg is always already analysed