diff options
author | Laszlo Boszormenyi (GCS) <gcs@debian.org> | 2025-02-16 09:07:36 +0100 |
---|---|---|
committer | Bernd Schubert <bernd@bsbernd.com> | 2025-02-17 19:06:31 +0100 |
commit | 5889ae6733298ab2f79c25b03b53f7a49255156e (patch) | |
tree | 1bc081fcf1306f17ae5106b1a78dc361b247cc2e /util | |
parent | 374892840a5767309905dcce1fcde5f80173eedf (diff) | |
download | libfuse-5889ae6733298ab2f79c25b03b53f7a49255156e.tar.gz |
Fix build of example/memfs_ll.cc on 32 bit architectures
The code uses std::min() which expects its arguments to be size_t. Two
times it uses an offset declared as off_t. While both size_t and off_t
are 32-bit integers, the latter is signed. On 64 bit architectures
the conversation of off_t -> size_t performed automatically. On 32 bit
architectures it needs a type cast.
Signed-off-by: Laszlo Boszormenyi (GCS) <gcs@debian.org>
Diffstat (limited to 'util')
0 files changed, 0 insertions, 0 deletions