]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
rados.py: correct some C types
authorJosh Durgin <josh.durgin@inktank.com>
Tue, 4 Jun 2013 20:23:36 +0000 (13:23 -0700)
committerSage Weil <sage@inktank.com>
Thu, 6 Jun 2013 20:55:21 +0000 (13:55 -0700)
commitd398a1850d5895ad409f5229f0dc06651c3d4d75
treefbe7cb59a399bc166c44bc45149ad4cf5a807d49
parent92b1e398576d55df8e5888dd1a9545ed3fd99532
rados.py: correct some C types

trunc was getting size_t instead of uint64_t, leading to bad results
in 32-bit environments. Explicitly cast to the desired type
everywhere, so it's clear the correct type is being used.

Fixes: #5233
Signed-off-by: Josh Durgin <josh.durgin@inktank.com>
(cherry picked from commit 6dd7d469000144b499af84bda9b735710bb5cec3)
src/pybind/rados.py