-
Notifications
You must be signed in to change notification settings - Fork 526
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fixed a subtle bug for
Naive(Date)Time + Duration
. (#37)
The exact condition is that the `Duration` to be added is negative and has a fractional second part. This was not a problem when `Duration` was Chrono's own type, but a new code for external (then libstd, now libtime) `Duration` was not tested for this condition by accident. Consequently this condition caused an underflow in the fractional part, resulting in a slight inaccuracy. Fixes #37.
- Loading branch information
1 parent
6d4054a
commit 5ff21f4
Showing
2 changed files
with
20 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters