From 460802bce606494a25ecf1e4ddd7d94b23f0f5b0 Mon Sep 17 00:00:00 2001 From: Robert Bradshaw Date: Thu, 9 Oct 2008 15:13:51 -0700 Subject: [PATCH] fix for boolean optimization --- Cython/Compiler/ExprNodes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.26.2