diff --git a/AK/Variant.h b/AK/Variant.h index c0919ab01ed..30856ca9a93 100644 --- a/AK/Variant.h +++ b/AK/Variant.h @@ -148,7 +148,7 @@ private: { // Warning: Internal type shenanigans - VariantsConstrutors <- Base // Not the other way around, so be _really_ careful not to cause issues. - return *reinterpret_cast(this); + return *static_cast(this); } };