Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
D
djinni
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
cpp-libs
djinni
Commits
bdbdcc05
Commit
bdbdcc05
authored
Apr 07, 2017
by
Michael Jarrett
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Renaming "temp" to "proxy_handle" to make more readable.
parent
6a3b9698
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
support-lib/jni/djinni_support.hpp
support-lib/jni/djinni_support.hpp
+3
-2
No files found.
support-lib/jni/djinni_support.hpp
View file @
bdbdcc05
...
...
@@ -342,8 +342,9 @@ static const std::shared_ptr<T> & objectFromHandleAddress(jlong handle) {
assert
(
handle
>
4096
);
// Below line segfaults gcc-4.8. Using a temporary variable hides the bug.
//const auto & ret = reinterpret_cast<const CppProxyHandle<T> *>(handle)->get();
const
CppProxyHandle
<
T
>
*
temp
=
reinterpret_cast
<
const
CppProxyHandle
<
T
>
*>
(
handle
);
const
auto
&
ret
=
temp
->
get
();
const
CppProxyHandle
<
T
>
*
proxy_handle
=
reinterpret_cast
<
const
CppProxyHandle
<
T
>
*>
(
handle
);
const
auto
&
ret
=
proxy_handle
->
get
();
assert
(
ret
);
return
ret
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment