fix-fastcall.patch 690 B

12345678910111213
  1. diff --git a/include/omath/rev_eng/internal_rev_object.hpp b/include/omath/rev_eng/internal_rev_object.hpp
  2. index 033ebd3..fc293d2 100644
  3. --- a/include/omath/rev_eng/internal_rev_object.hpp
  4. +++ b/include/omath/rev_eng/internal_rev_object.hpp
  5. @@ -29,7 +29,7 @@ namespace omath::rev_eng
  6. #ifdef _MSC_VER
  7. using VirtualMethodType = ReturnType(__thiscall*)(void*, decltype(arg_list)...);
  8. #else
  9. - using VirtualMethodType = ReturnType(__fastcall*)(void*, decltype(arg_list)...);
  10. + using VirtualMethodType = ReturnType(*)(void*, decltype(arg_list)...);
  11. #endif
  12. return (*reinterpret_cast<VirtualMethodType**>(this))[id](this, arg_list...);
  13. }