aboutsummaryrefslogtreecommitdiffstats
path: root/src/thread.rs
diff options
context:
space:
mode:
authoreaon <eaon@mit.edu>2018-11-13 01:04:27 +0100
committereaon <eaon@mit.edu>2018-11-20 21:29:58 +0100
commit020efa44a914d72b16575b3380d5a364e6d0b0ca (patch)
tree9a9c2f293620ae3d470e570b95d9f49e7d102725 /src/thread.rs
parentad70f33648245764c2d02bde14207f9b86bfe016 (diff)
downloadmail-020efa44a914d72b16575b3380d5a364e6d0b0ca.tar.gz
If we get a i32 timestamp make sure we cast it to i64
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 }
}
}