# HG changeset patch # User Paul Boddie # Date 1488737644 -3600 # Node ID 196988ae83cb87bad335406018b8d28c773ec1fa # Parent cb4fd280007e5df5801576259c2c9f04f271c6a0 Targets should not need unwrapping again when obtaining functions. diff -r cb4fd280007e -r 196988ae83cb templates/ops.c --- a/templates/ops.c Sun Mar 05 19:00:40 2017 +0100 +++ b/templates/ops.c Sun Mar 05 19:14:04 2017 +0100 @@ -315,8 +315,6 @@ __attr (*__get_function(__ref context, __attr target))(__attr[]) { - target = __unwrap_callable(target); - /* Require null or instance contexts for functions and methods respectively, or type instance contexts for type methods. */ @@ -328,8 +326,6 @@ __attr (*__check_and_get_function(__ref context, __attr target))(__attr[]) { - target = __unwrap_callable(target); - /* Require null or instance contexts for functions and methods respectively, or type instance contexts for type methods. */ diff -r cb4fd280007e -r 196988ae83cb templates/progops.c --- a/templates/progops.c Sun Mar 05 19:00:40 2017 +0100 +++ b/templates/progops.c Sun Mar 05 19:14:04 2017 +0100 @@ -217,9 +217,7 @@ /* Erase the remaining arguments. */ for (pos = nargs; pos < max; pos++) - { allargs[pos].value = 0; - } /* Fill keyword arguments. */