mirror of
https://github.com/d47081/qBittorrent.git
synced 2025-01-22 20:44:15 +00:00
Suppress type narrowing warnings
This commit is contained in:
parent
2c9e1d942b
commit
ca9f5a18d4
@ -76,8 +76,8 @@ namespace
|
||||
{
|
||||
const size_t strLen = strlen(str);
|
||||
#ifdef Q_OS_WIN
|
||||
if (_write(_fileno(stderr), str, strLen) < static_cast<int>(strLen))
|
||||
std::ignore = _write(_fileno(stdout), str, strLen);
|
||||
if (_write(_fileno(stderr), str, static_cast<unsigned int>(strLen)) < static_cast<int>(strLen))
|
||||
std::ignore = _write(_fileno(stdout), str, static_cast<unsigned int>(strLen));
|
||||
#else
|
||||
if (write(STDERR_FILENO, str, strLen) < static_cast<ssize_t>(strLen))
|
||||
std::ignore = write(STDOUT_FILENO, str, strLen);
|
||||
|
Loading…
x
Reference in New Issue
Block a user