diff --git a/src/engine/function.cpp b/src/engine/function.cpp index 22f7a2ef2..363929660 100644 --- a/src/engine/function.cpp +++ b/src/engine/function.cpp @@ -387,7 +387,9 @@ struct _stack { using U = remove_cref_t; assert( ((ptrdiff_t)data) > (1<<4) ); - return &( static_cast( data )[n] ); + remove_cref_t * result = &( static_cast( data )[n] ); + assert( ((ptrdiff_t)result) > (1<<4) ); + return result; } template