Fix 64-bit MessageQueue JNI build
Change-Id: I75b3788e7dcece4a2d64d969a10d28e7a9593cd6 Signed-off-by: Greg Hackmann <ghackmann@google.com>
This commit is contained in:
@@ -149,7 +149,7 @@ int NativeMessageQueue::handleEvent(int fd, int looperEvents, void* data) {
|
||||
if (looperEvents & (Looper::EVENT_ERROR | Looper::EVENT_HANGUP | Looper::EVENT_INVALID)) {
|
||||
events |= CALLBACK_EVENT_ERROR;
|
||||
}
|
||||
int oldWatchedEvents = reinterpret_cast<int>(data);
|
||||
int oldWatchedEvents = reinterpret_cast<intptr_t>(data);
|
||||
int newWatchedEvents = mPollEnv->CallIntMethod(mPollObj,
|
||||
gMessageQueueClassInfo.dispatchEvents, fd, events);
|
||||
if (!newWatchedEvents) {
|
||||
|
||||
Reference in New Issue
Block a user