1.1 --- a/translator.py Sun Oct 30 13:13:43 2016 +0100
1.2 +++ b/translator.py Sun Oct 30 13:14:45 2016 +0100
1.3 @@ -964,7 +964,7 @@
1.4 name = self.get_lambda_name()
1.5 function_name = self.get_object_path(name)
1.6
1.7 - defaults = self.process_function_defaults(n, name, "__tmp_result")
1.8 + defaults = self.process_function_defaults(n, name, "__tmp_value")
1.9
1.10 # Without defaults, produce an attribute referring to the function.
1.11
1.12 @@ -975,7 +975,7 @@
1.13 # copy.
1.14
1.15 else:
1.16 - return make_expression("(__tmp_result = __COPY(&%s, sizeof(%s)), %s)" % (
1.17 + return make_expression("(__tmp_value = __COPY(&%s, sizeof(%s)), %s, (__attr) {0, __tmp_value})" % (
1.18 encode_path(function_name),
1.19 encode_symbol("obj", function_name),
1.20 ", ".join(defaults)))