mirror of https://github.com/trapexit/mergerfs.git
Browse Source
On 32 bit platforms tv_nsec is a signed long while the FUSE setattr arguments provide nanoseconds as uint32_t. C++17 treats uint32_t -> long in a brace initializer as a narrowing conversion and rejects it on ILP32 targets. This surfaced when building on FreeBSD i386 with clang 19 where the compiler refused the list initialization of struct timespec. Add explicit static_cast<long>() for the nsec fields to make the conversion intentional and portable. This avoids build failures on i386 while leaving 64 bit builds unchanged.pull/1593/head
1 changed files with 2 additions and 2 deletions
Loading…
Reference in new issue