Commit c4a617b0 authored by chenhuaqing's avatar chenhuaqing

fix bug

parent ac7d0d21
...@@ -320,7 +320,7 @@ template <class T> using CppProxyHandle = JniCppProxyCache::Handle<std::shared_p ...@@ -320,7 +320,7 @@ template <class T> using CppProxyHandle = JniCppProxyCache::Handle<std::shared_p
template <class T> template <class T>
static const std::shared_ptr<T> & objectFromHandleAddress(jlong handle) { static const std::shared_ptr<T> & objectFromHandleAddress(jlong handle) {
assert(handle); assert(handle);
assert(handle > 4096); assert(((uint64_t)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> *proxy_handle = const CppProxyHandle<T> *proxy_handle =
......
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