Skip to content

Commit

Permalink
fix: 解决arm64-v8a架构下alarm导致崩溃的问题
Browse files Browse the repository at this point in the history
long long和int64_t类型不一样,导致Alarm.onAlarm中的boost:any_cast<int64_t>(_message.body1)引起崩溃
  • Loading branch information
songzhangzhang committed Mar 29, 2017
1 parent de1982c commit 0faa7f6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mars/comm/jni/OnAlarm.inl
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@

extern "C" JNIEXPORT void JNICALL Java_com_tencent_mars_comm_Alarm_onAlarm(JNIEnv *, jclass, jlong id)
{
xdebug2(TSF"BroadcastMessage seq:%_", (long long)id);
MessageQueue::BroadcastMessage(MessageQueue::GetDefMessageQueue(), MessageQueue::Message(KALARM_MESSAGETITLE, (long long)id, 0));
xdebug2(TSF"BroadcastMessage seq:%_", (int64_t)id);
MessageQueue::BroadcastMessage(MessageQueue::GetDefMessageQueue(), MessageQueue::Message(KALARM_MESSAGETITLE, (int64_t)id, 0));
}

0 comments on commit 0faa7f6

Please # to comment.