Fix type resolution issue with no_float enabled

This commit is contained in:
J Henry Waugh 2020-08-14 19:39:28 -05:00
parent 89de2fe6b2
commit e4045256fe

View File

@ -99,7 +99,7 @@ fn time_diff(ts1: Instant, ts2: Instant) -> Result<Dynamic, Box<EvalAltResult>>
.into(); .into();
} }
Ok(-(seconds as INT).into()) Ok(Dynamic::from(-(seconds as INT)))
} else { } else {
let seconds = (ts1 - ts2).as_secs(); let seconds = (ts1 - ts2).as_secs();