From 0769d3d079e5bd2dfb9f30376d72d8188eb3f812 Mon Sep 17 00:00:00 2001 From: Orange Date: Sun, 22 Mar 2026 17:30:25 +0300 Subject: [PATCH] replaced with auto --- 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 9e1bfbb..4925230 100644 --- a/include/omath/rev_eng/internal_rev_object.hpp +++ b/include/omath/rev_eng/internal_rev_object.hpp @@ -119,7 +119,7 @@ namespace omath::rev_eng template ReturnType call_virtual_method(auto... arg_list) { - void* sub_this = reinterpret_cast( + auto sub_this = reinterpret_cast( reinterpret_cast(this) + TableIndex * sizeof(std::uintptr_t)); const auto vtable = *reinterpret_cast(sub_this); #ifdef _MSC_VER @@ -132,7 +132,7 @@ namespace omath::rev_eng template ReturnType call_virtual_method(auto... arg_list) const { - const void* sub_this = reinterpret_cast( + auto sub_this = reinterpret_cast( reinterpret_cast(this) + TableIndex * sizeof(std::uintptr_t)); const auto vtable = *reinterpret_cast(sub_this); #ifdef _MSC_VER