aboutsummaryrefslogtreecommitdiffstats
path: root/src/message.rs
diff options
context:
space:
mode:
authorDirk Van Haerenborgh <vhdirk@gmail.com>2018-11-20 23:31:24 +0100
committerGitHub <noreply@github.com>2018-11-20 23:31:24 +0100
commit7f14f694090b097dd486cab79c0b54235b2eb6d6 (patch)
treecf2735ce035264f0e2e0b0d0d893de11d7aeb893 /src/message.rs
parent9826d6ae6247efc0bf620d0b422c51ad7f74ac07 (diff)
parent020efa44a914d72b16575b3380d5a364e6d0b0ca (diff)
downloadmail-7f14f694090b097dd486cab79c0b54235b2eb6d6.tar.gz
Merge pull request #11 from eaon/multi-arch-support
Make sure to cast time_t to i64 so that notmuch-rs works on 32 bit platforms too
Diffstat (limited to 'src/message.rs')
-rw-r--r--src/message.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/message.rs b/src/message.rs
index b253d68..83a834f 100644
--- a/src/message.rs
+++ b/src/message.rs
@@ -86,7 +86,7 @@ where
}
pub fn date(&self) -> i64 {
- unsafe { ffi::notmuch_message_get_date(self.handle.ptr) }
+ unsafe { ffi::notmuch_message_get_date(self.handle.ptr) as i64 }
}
pub fn header(&self, name: &str) -> Result<Option<&str>> {