Commit d0d2d93
committed
Cast datetime and timedelta to signed 64-bit int
The `NaT` type is represented as `-0`. As a result, casting to an
unsigned integral fails and throws an error. However casting to a signed
integral type does not have this problem and proceeds without issues.1 parent bea4b32 commit d0d2d93
2 files changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
102 | 102 | | |
103 | 103 | | |
104 | 104 | | |
105 | | - | |
| 105 | + | |
106 | 106 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | | - | |
| 24 | + | |
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| |||
0 commit comments