]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
test/bufferlist.cc: encode/decode int64_t instead of long
authorKefu Chai <kchai@redhat.com>
Mon, 26 Aug 2019 05:54:27 +0000 (13:54 +0800)
committerKefu Chai <kchai@redhat.com>
Mon, 26 Aug 2019 12:12:35 +0000 (20:12 +0800)
commit2e079c2ee32484765bffda9a43af0a39224d6558
tree049a54b81a498ab9c8abe68098778a544b74ceb1
parenta3fdfe6d67d5561f4a7ac88f470a246928243188
test/bufferlist.cc: encode/decode int64_t instead of long

use `int64_t` instead of `long`, as on LP64 systems, `long` are 64bit.
and LP64 is quite popular nowadays.

quote from Alexandre's mail:

> encode/decode don't handle long at all, they deal with u?int{32,64}_t
> and uint64_t.  When int64_t happens to be int or long, this works, but
> when int64_t is long long, then long ends up uncovered

Signed-off-by: Alexandre Oliva <oliva@gnu.org>
src/test/bufferlist.cc