diff --git a/common/utils.h b/common/utils.h index 6937a2e8b9a6..abf3ca6848e0 100644 --- a/common/utils.h +++ b/common/utils.h @@ -123,10 +123,10 @@ void tal_wally_end(const tal_t *parent); /* ... or this if you want to reparent onto something which is * allocated by libwally here. Fixes up this from_wally obj to have a * proper tal_name, too! */ -#define tal_wally_end_onto(parent, from_wally, type) \ - tal_wally_end_onto_((parent), \ - (from_wally) + 0*sizeof((from_wally) == (type *)0), \ - stringify(type)) +#define tal_wally_end_onto(parent, from_wally, type) \ + tal_wally_end_onto_( \ + (parent), (from_wally), \ + &stringify(type)[0 * sizeof((from_wally) == (type *)0)]) void tal_wally_end_onto_(const tal_t *parent, tal_t *from_wally, const char *from_wally_name);