diff --git a/include/omath/rev_eng/internal_rev_object.hpp b/include/omath/rev_eng/internal_rev_object.hpp index be8772d..0270870 100644 --- a/include/omath/rev_eng/internal_rev_object.hpp +++ b/include/omath/rev_eng/internal_rev_object.hpp @@ -120,14 +120,14 @@ namespace omath::rev_eng ReturnType call_virtual_method(auto... arg_list) { const auto vtable = *reinterpret_cast( - reinterpret_cast(this) + TableIndex * sizeof(void*)); + reinterpret_cast(this) + TableIndex * sizeof(std::uintptr_t)); return call_method(vtable[Id], arg_list...); } template ReturnType call_virtual_method(auto... arg_list) const { const auto vtable = *reinterpret_cast( - reinterpret_cast(this) + TableIndex * sizeof(void*)); + reinterpret_cast(this) + TableIndex * sizeof(std::uintptr_t)); return call_method(vtable[Id], arg_list...); }