Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(63)

Unified Diff: native_client_sdk/src/examples/dlopen/dlopen.cc

Issue 9383038: Build cleanups (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « native_client_sdk/src/examples/Makefile ('k') | native_client_sdk/src/examples/pong/view.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: native_client_sdk/src/examples/dlopen/dlopen.cc
===================================================================
--- native_client_sdk/src/examples/dlopen/dlopen.cc (revision 121652)
+++ native_client_sdk/src/examples/dlopen/dlopen.cc (working copy)
@@ -81,7 +81,8 @@
if(_dlhandle == NULL) {
logmsg("libeightball.so did not load");
} else {
- _eightball = (TYPE_eightball) dlsym(this->_dlhandle, "Magic8Ball");
+ intptr_t offset = (intptr_t) dlsym(this->_dlhandle, "Magic8Ball");
+ _eightball = (TYPE_eightball) offset;
if (NULL == _eightball) {
std::string ballmessage = "dlsym() returned NULL: ";
ballmessage += dlerror();
« no previous file with comments | « native_client_sdk/src/examples/Makefile ('k') | native_client_sdk/src/examples/pong/view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698