changeset 168:31e6933cecec

runtime_sugar: corrected stupness.
author Sigurd Meldgaard <stm@daimi.au.dk>
date Fri, 11 Dec 2009 10:47:03 +0100
parents 32d343c4e0f7
children 196ecd8eeea4
files pysmcl/runtime_sugar.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/pysmcl/runtime_sugar.py	Fri Dec 11 10:46:09 2009 +0100
+++ b/pysmcl/runtime_sugar.py	Fri Dec 11 10:47:03 2009 +0100
@@ -30,7 +30,7 @@
                                   identifier="output")
                 ast.copy_location(node.func, r)
                 node.func = r
-                yield_exp = ast.Yield(value=r)
+                yield_exp = ast.Yield(value=node)
                 ast.copy_location(node, yield_exp)
                 return yield_exp
             if(self.is_function(node, "input")):