diff options
author | rhysd <lin90162@yahoo.co.jp> | 2015-09-28 11:42:52 +0900 |
---|---|---|
committer | rhysd <lin90162@yahoo.co.jp> | 2015-09-28 11:42:52 +0900 |
commit | 3dbc441c785b1242d41dc0f9553fed53545ecf8c (patch) | |
tree | b5cf66400bff0521fac9e71b3986f7f36896ef06 /src/output/details.rs | |
parent | 41fb02a02d8dac0c1576b0a63d6af3a3c112be6c (diff) |
Fix integer length error on 32bit environment
this commit fixes below type mismatch error:
```
src/output/details.rs:585:49: 585:60 error: mismatched types:
expected `i64`,
found `i32`
(expected i64,
found i32) [E0308]
src/output/details.rs:585 let date = self.tz.at(LocalDateTime::at(timestamp.0));
^~~~~~~~~~~
src/output/details.rs:585:49: 585:60 help: run `rustc --explain E0308` to see a detailed explanation
error: aborting due to previous error
Could not compile `exa`.
```
Diffstat (limited to 'src/output/details.rs')
-rw-r--r-- | src/output/details.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/output/details.rs b/src/output/details.rs index 5778f90..991645f 100644 --- a/src/output/details.rs +++ b/src/output/details.rs @@ -582,7 +582,7 @@ impl<U> Table<U> where U: Users { } fn render_time(&self, timestamp: f::Time) -> Cell { - let date = self.tz.at(LocalDateTime::at(timestamp.0)); + let date = self.tz.at(LocalDateTime::at(timestamp.0 as i64)); let format = if date.year() == self.current_year { DateFormat::parse("{2>:D} {:M} {2>:h}:{02>:m}").unwrap() |