Browse Source

Suppress type narrowing warnings

adaptive-webui-19844
Chocobo1 2 years ago
parent
commit
ca9f5a18d4
No known key found for this signature in database
GPG Key ID: 210D9C873253A68C
  1. 4
      src/app/signalhandler.cpp

4
src/app/signalhandler.cpp

@ -76,8 +76,8 @@ namespace @@ -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…
Cancel
Save