mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-08-14 09:56:04 +08:00
Fixed a compile warning
This commit is contained in:
parent
199c7517f4
commit
622c3761b0
@ -510,9 +510,9 @@ bool copy_file_linux(const boost::filesystem::path &from, const boost::filesyste
|
|||||||
// and our build server based on CentOS 7 with Linux 3.10 does not support that anyways.
|
// and our build server based on CentOS 7 with Linux 3.10 does not support that anyways.
|
||||||
{
|
{
|
||||||
// sendfile will not send more than this amount of data in one call
|
// sendfile will not send more than this amount of data in one call
|
||||||
BOOST_CONSTEXPR_OR_CONST std::size_t max_send_size = 0x7ffff000u;
|
constexpr std::size_t max_send_size = 0x7ffff000u;
|
||||||
uintmax_t offset = 0u;
|
uintmax_t offset = 0u;
|
||||||
while (offset < from_stat.st_size) {
|
while (off_t(offset) < from_stat.st_size) {
|
||||||
uintmax_t size_left = from_stat.st_size - offset;
|
uintmax_t size_left = from_stat.st_size - offset;
|
||||||
std::size_t size_to_copy = max_send_size;
|
std::size_t size_to_copy = max_send_size;
|
||||||
if (size_left < static_cast<uintmax_t>(max_send_size))
|
if (size_left < static_cast<uintmax_t>(max_send_size))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user