Skip to content

Commit b2ab2d8

Browse files
committed
c_long-c_int64 for all time_t fields (always 8 bytes on every platform)
1 parent f51b964 commit b2ab2d8

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/tidesdb/tidesdb.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
c_double,
3232
c_float,
3333
c_int,
34-
c_long,
34+
c_int64,
3535
c_size_t,
3636
c_uint8,
3737
c_uint32,
@@ -213,7 +213,7 @@ class _CCommitOp(Structure):
213213
("key_size", c_size_t),
214214
("value", POINTER(c_uint8)),
215215
("value_size", c_size_t),
216-
("ttl", c_long),
216+
("ttl", c_int64),
217217
("is_delete", c_int),
218218
]
219219

@@ -311,7 +311,7 @@ class _CCacheStats(Structure):
311311
c_size_t,
312312
POINTER(c_uint8),
313313
c_size_t,
314-
c_long,
314+
c_int64,
315315
]
316316
_lib.tidesdb_txn_put.restype = c_int
317317

0 commit comments

Comments
 (0)