Commit 9d65a2e
committed
KT-82901: Fix issue with converting Long.MIN_VALUE to Duration
- Fix Duration unit conversion overflow handling for milliseconds and add boundary clamping
- Add boundary value tests for Long-to-Duration conversions
^KT-82901 Fixed
Merge-request: KT-MR-24754
Merged-by: Dmitry Nekrasov <dmitry.nekrasov@jetbrains.com>
(cherry picked from commit ab1a3c3)1 parent 35a9a82 commit 9d65a2e
File tree
2 files changed
+30
-1
lines changed- libraries/stdlib
- src/kotlin/time
- test/time
2 files changed
+30
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
977 | 977 | | |
978 | 978 | | |
979 | 979 | | |
980 | | - | |
| 980 | + | |
| 981 | + | |
| 982 | + | |
| 983 | + | |
| 984 | + | |
| 985 | + | |
981 | 986 | | |
982 | 987 | | |
983 | 988 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
75 | 75 | | |
76 | 76 | | |
77 | 77 | | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
78 | 102 | | |
79 | 103 | | |
80 | 104 | | |
| |||
0 commit comments