]> granicus.if.org Git - python/commit
Fix DBEnv's set_tx_timestamp wrapper to be slightly more correct on
authorThomas Wouters <thomas@python.org>
Wed, 1 Mar 2006 01:01:55 +0000 (01:01 +0000)
committerThomas Wouters <thomas@python.org>
Wed, 1 Mar 2006 01:01:55 +0000 (01:01 +0000)
commit9d63ccae909122dc5a6e4dc793ad3c3885cc5bdc
tree34f5100518509ebae75edd8d4f98b75331853bd4
parentca82a8b7604ba0ace261a75eb204d9fab765cdbf
Fix DBEnv's set_tx_timestamp wrapper to be slightly more correct on
non-32bit platforms. Will still only allow 32 bits in a timestamp on Win64,
but at least it won't crash, and it'll work right on platforms where longs
are big enough to contain time_t's.

(A better-working, although conceptually less-right fix would have been to
use Py_ssize_t here, but Martin and Tim won't let me.)
Modules/_bsddb.c