Skip to content

Commit a180a1a

Browse files
committed
change lower bound; but keep rounding to us
1 parent c9b7bed commit a180a1a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

pandas/tslib.pyx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -906,11 +906,11 @@ cpdef object get_value_box(ndarray arr, object loc):
906906

907907
# Add the min and max fields at the class level
908908
cdef int64_t _NS_UPPER_BOUND = INT64_MAX
909-
# smallest value we could actually represent is
909+
# the smallest value we could actually represent is
910910
# INT64_MIN + 1 == -9223372036854775807
911911
# but to allow overflow free conversion with a microsecond resolution
912-
# use the smallest value with a 0 nanosecond unit
913-
cdef int64_t _NS_LOWER_BOUND = -9223285636854775000LL
912+
# use the smallest value with a 0 nanosecond unit (0s in last 3 digits)
913+
cdef int64_t _NS_LOWER_BOUND = -9223372036854775000
914914

915915
cdef pandas_datetimestruct _NS_MIN_DTS, _NS_MAX_DTS
916916
pandas_datetime_to_datetimestruct(_NS_LOWER_BOUND, PANDAS_FR_ns, &_NS_MIN_DTS)

0 commit comments

Comments
 (0)