Fix type resolution issue with no_float enabled
This commit is contained in:
parent
89de2fe6b2
commit
e4045256fe
@ -99,7 +99,7 @@ fn time_diff(ts1: Instant, ts2: Instant) -> Result<Dynamic, Box<EvalAltResult>>
|
||||
.into();
|
||||
}
|
||||
|
||||
Ok(-(seconds as INT).into())
|
||||
Ok(Dynamic::from(-(seconds as INT)))
|
||||
} else {
|
||||
let seconds = (ts1 - ts2).as_secs();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user