Skip to content

Commit 6a35bfa

Browse files
committed
Use C long long for large timevalue to work on 32 and 64-bit
1 parent 7299ee5 commit 6a35bfa

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

pandas/io/rdata/_rdata.pyx

+3-1
Original file line numberDiff line numberDiff line change
@@ -344,6 +344,7 @@ cdef class LibrdataWriter():
344344
dict rdict
345345
dict rformats
346346
dict rtypes
347+
long long timeval
347348
bytes file_name
348349
bytes tbl_name
349350
rdata_writer_t *writer
@@ -367,7 +368,8 @@ cdef class LibrdataWriter():
367368

368369
if vtype == RDATA_TYPE_TIMESTAMP:
369370
for k, v in vdata.items():
370-
rdata_append_timestamp_value(self.writer, v)
371+
self.timeval = v
372+
rdata_append_timestamp_value(self.writer, self.timeval)
371373

372374
if vtype == RDATA_TYPE_STRING:
373375
for k, v in vdata.items():

0 commit comments

Comments
 (0)