diff options
author | 2016-03-30 08:35:21 +0200 | |
---|---|---|
committer | 2016-03-30 08:35:21 +0200 | |
commit | 913ab1e14041b81f3c9276ea3a7adfff32c0408c (patch) | |
tree | f4d630b889546e006e98de2ea05aa20d56c11303 /src/lib/util/delegate.cpp | |
parent | 21fe699db20e3354d92396d4a29f5fd648584437 (diff) |
Cleanups and version bump
Diffstat (limited to 'src/lib/util/delegate.cpp')
-rw-r--r-- | src/lib/util/delegate.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/util/delegate.cpp b/src/lib/util/delegate.cpp index c8633633325..c50f1cf5d63 100644 --- a/src/lib/util/delegate.cpp +++ b/src/lib/util/delegate.cpp @@ -52,7 +52,7 @@ delegate_generic_function delegate_mfp::convert_to_generic(delegate_generic_clas // otherwise, it is the byte index into the vtable where the actual function lives std::uint8_t *vtable_base = *reinterpret_cast<std::uint8_t **>(object); #if defined(LOG_DELEGATES) - printf("Calculated Addr = %08x (VTAB)\n", (uintptr_t)(void*)(*reinterpret_cast<delegate_generic_function *>(vtable_base + m_function + m_this_delta - 1))); + printf("Calculated Addr = %08x (VTAB)\n", (uintptr_t)(void*)(*reinterpret_cast<delegate_generic_function *>(vtable_base + m_function + m_this_delta - 1))); #endif return *reinterpret_cast<delegate_generic_function *>(vtable_base + m_function + m_this_delta - 1); #else @@ -70,7 +70,7 @@ delegate_generic_function delegate_mfp::convert_to_generic(delegate_generic_clas // otherwise, it is the byte index into the vtable where the actual function lives std::uint8_t *vtable_base = *reinterpret_cast<std::uint8_t **>(object); #if defined(LOG_DELEGATES) - printf("Calculated Addr = %08x (VTAB)\n", (uintptr_t)(void*)(*reinterpret_cast<delegate_generic_function *>(vtable_base + m_function - 1))); + printf("Calculated Addr = %08x (VTAB)\n", (uintptr_t)(void*)(*reinterpret_cast<delegate_generic_function *>(vtable_base + m_function - 1))); #endif return *reinterpret_cast<delegate_generic_function *>(vtable_base + m_function - 1); #endif |