diff --git a/Utilities/types.h b/Utilities/types.h index 11cd8f7511..0b87dea161 100644 --- a/Utilities/types.h +++ b/Utilities/types.h @@ -96,7 +96,7 @@ namespace std { static_assert(sizeof(To) == sizeof(From), "std::bit_cast<>: incompatible type size"); - To result; + To result{}; std::memcpy(&result, &from, sizeof(From)); return result; }