diff options
| author | eaon <eaon@mit.edu> | 2018-11-13 01:04:27 +0100 |
|---|---|---|
| committer | eaon <eaon@mit.edu> | 2018-11-20 21:29:58 +0100 |
| commit | 020efa44a914d72b16575b3380d5a364e6d0b0ca (patch) | |
| tree | 9a9c2f293620ae3d470e570b95d9f49e7d102725 /src/message.rs | |
| parent | ad70f33648245764c2d02bde14207f9b86bfe016 (diff) | |
| download | mail-020efa44a914d72b16575b3380d5a364e6d0b0ca.tar.gz | |
If we get a i32 timestamp make sure we cast it to i64
Diffstat (limited to 'src/message.rs')
| -rw-r--r-- | src/message.rs | 2 |
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>> { |
