Skip to content

Commit

Permalink
Remove TODO
Browse files Browse the repository at this point in the history
  • Loading branch information
sharkdp committed Feb 9, 2024
1 parent 2dfff84 commit 21d5491
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion numbat/src/vm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -657,7 +657,6 @@ impl Vm {
let base = rhs.to_base_unit_representation();
let seconds_f = base.unsafe_value().to_f64();

// TODO check that this handles negative durations correctly
let duration = chrono::Duration::seconds(seconds_f.trunc() as i64)
+ chrono::Duration::nanoseconds(
(seconds_f.fract() * 1_000_000_000f64).round() as i64,
Expand Down

0 comments on commit 21d5491

Please sign in to comment.