]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
common: Fix pointer to integer casts on Windows
authorLucian Petrut <lpetrut@cloudbasesolutions.com>
Thu, 10 Oct 2019 13:30:48 +0000 (16:30 +0300)
committerLucian Petrut <lpetrut@cloudbasesolutions.com>
Mon, 22 Jun 2020 09:03:49 +0000 (09:03 +0000)
commitad1338cbe252287aa6cbdbbb4e8d129b461f51f2
treececbe636c4ced588e920b4fa09c598fe3572db4a
parent1c27f71334149ca22e9f318fe368356c8be178c0
common: Fix pointer to integer casts on Windows

'long' will be 32b on Windows, even on x64 targets. For this reason,
we can't use "long" when casting a pointer.

We'll use uintptr_t instead.

Signed-off-by: Lucian Petrut <lpetrut@cloudbasesolutions.com>
src/common/buffer.cc
src/include/buffer.h
src/include/err.h