From fe67a6e012449f040272aa08e0b17983742debba Mon Sep 17 00:00:00 2001 From: Loic Blot Date: Mon, 4 Sep 2017 22:36:22 +0200 Subject: [PATCH] Fix date type problem on some platforms --- src/main/cpp/smsbuffer.cpp | 2 +- src/main/cpp/smsbuffer.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/cpp/smsbuffer.cpp b/src/main/cpp/smsbuffer.cpp index 62d7ecf..1792ee8 100644 --- a/src/main/cpp/smsbuffer.cpp +++ b/src/main/cpp/smsbuffer.cpp @@ -81,7 +81,7 @@ void SmsBuffer::push(JNIEnv *env, jobject self, jint msg_id, jint mailbox_id, ji } void SmsBuffer::_push(int msg_id, int mailbox_id, int type, - long date, const char *address, const char *body, const char *read, + long long date, const char *address, const char *body, const char *read, const char *seen) { // If buffer is not empty, we are joining messages diff --git a/src/main/cpp/smsbuffer.h b/src/main/cpp/smsbuffer.h index 2b7fa37..1fd866c 100644 --- a/src/main/cpp/smsbuffer.h +++ b/src/main/cpp/smsbuffer.h @@ -37,7 +37,7 @@ public: jint mailbox_id, jint type, jlong date, jstring address, jstring body, jstring read, jstring seen); void _push(int msg_id, int mailbox_id, int type, - long date, const char *address, const char *body, const char *read, + long long date, const char *address, const char *body, const char *read, const char *seen); /*