mirror of
https://github.com/Llewellynvdm/exa.git
synced 2025-02-13 07:48:57 +00:00
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`. ```
This commit is contained in:
parent
41fb02a02d
commit
3dbc441c78
@ -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()
|
||||
|
Loading…
x
Reference in New Issue
Block a user