aboutsummaryrefslogtreecommitdiffstats
path: root/src/thread.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/thread.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/thread.rs')
-rw-r--r--src/thread.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/thread.rs b/src/thread.rs
index fce026d..8a8c1d7 100644
--- a/src/thread.rs
+++ b/src/thread.rs
@@ -94,12 +94,12 @@ where
/// Get the date of the oldest message in 'thread' as a time_t value.
pub fn oldest_date(self: &Self) -> i64 {
- unsafe { ffi::notmuch_thread_get_oldest_date(self.handle.ptr) }
+ unsafe { ffi::notmuch_thread_get_oldest_date(self.handle.ptr) as i64 }
}
/// Get the date of the newest message in 'thread' as a time_t value.
pub fn newest_date(self: &Self) -> i64 {
- unsafe { ffi::notmuch_thread_get_newest_date(self.handle.ptr) }
+ unsafe { ffi::notmuch_thread_get_newest_date(self.handle.ptr) as i64 }
}
}