Commit bdbdcc05 authored by Michael Jarrett's avatar Michael Jarrett

Renaming "temp" to "proxy_handle" to make more readable.

parent 6a3b9698
...@@ -342,8 +342,9 @@ static const std::shared_ptr<T> & objectFromHandleAddress(jlong handle) { ...@@ -342,8 +342,9 @@ static const std::shared_ptr<T> & objectFromHandleAddress(jlong handle) {
assert(handle > 4096); assert(handle > 4096);
// Below line segfaults gcc-4.8. Using a temporary variable hides the bug. // Below line segfaults gcc-4.8. Using a temporary variable hides the bug.
//const auto & ret = reinterpret_cast<const CppProxyHandle<T> *>(handle)->get(); //const auto & ret = reinterpret_cast<const CppProxyHandle<T> *>(handle)->get();
const CppProxyHandle<T> *temp = reinterpret_cast<const CppProxyHandle<T> *>(handle); const CppProxyHandle<T> *proxy_handle =
const auto & ret = temp->get(); reinterpret_cast<const CppProxyHandle<T> *>(handle);
const auto & ret = proxy_handle->get();
assert(ret); assert(ret);
return ret; return ret;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment