This commit is contained in:
Klaus Basan
2019-06-08 20:57:47 +02:00
parent 210e01a77d
commit 4f72f4fe79
2 changed files with 2 additions and 2 deletions

View File

@@ -22,7 +22,7 @@
#include <stdio.h> #include <stdio.h>
#include <errno.h> #include <errno.h>
#elif defined(Q_OS_WIN32) #elif defined(Q_OS_WIN32)
#include <windows.h> #include <Windows.h>
#include <io.h> #include <io.h>
#endif #endif

View File

@@ -308,7 +308,7 @@ namespace BlackMisc
{ {
for (auto i = m_cslPackages.cbegin(); i != m_cslPackages.cend(); ++i) for (auto i = m_cslPackages.cbegin(); i != m_cslPackages.cend(); ++i)
{ {
if (strncmp(qPrintable(i->name), qPrintable(ioPath), i->name.size()) == 0) if (strncmp(qPrintable(i->name), qPrintable(ioPath), static_cast<size_t>(i->name.size())) == 0)
{ {
ioPath.remove(0, i->name.size()); ioPath.remove(0, i->name.size());
ioPath.insert(0, i->path); ioPath.insert(0, i->path);