From ab103f626b030b286b02af0834689d05d3a5b1e5 Mon Sep 17 00:00:00 2001 From: Orange Date: Sun, 22 Mar 2026 16:05:09 +0300 Subject: [PATCH] swaped to std::uintptr_t --- include/omath/rev_eng/internal_rev_object.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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...); }