mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-10-21 08:08:29 +00:00
tcmu_lba_to_byte() returns uint64_t while size_t is 32-bit on ILP32 targets, so the type-checking min() macro fails with -Werror,-Wcompare-distinct-pointer-types. Compare in 64 bits; the result never exceeds length, so it still fits in size_t. Build-tested for qemuriscv32 (musl, clang). Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>