diff options
| author | LostDragonist <lost.dragonist@gmail.com> | 2018-09-30 15:52:45 -0500 |
|---|---|---|
| committer | LostDragonist <lost.dragonist@gmail.com> | 2018-09-30 16:03:28 -0500 |
| commit | 2d50b172434945d168779029c55f4a51f290d515 (patch) | |
| tree | 3a4e8175271b40b0c3e2cba312c3449ad107bd1c /src/modinfodialog.cpp | |
| parent | 5a1d4e87835a00747fb20ea080bc5470e3bb1dc1 (diff) | |
Fix pointer truncation to remove warning
Diffstat (limited to 'src/modinfodialog.cpp')
| -rw-r--r-- | src/modinfodialog.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modinfodialog.cpp b/src/modinfodialog.cpp index 12654755..fedddd6c 100644 --- a/src/modinfodialog.cpp +++ b/src/modinfodialog.cpp @@ -1080,7 +1080,7 @@ void ModInfoDialog::openFile(const QModelIndex &index) QString fileName = m_FileSystemModel->filePath(index);
HINSTANCE res = ::ShellExecuteW(nullptr, L"open", ToWString(fileName).c_str(), nullptr, nullptr, SW_SHOW);
- if ((int)res <= 32) {
+ if ((unsigned long long)res <= 32) {
qCritical("failed to invoke %s: %d", fileName.toUtf8().constData(), res);
}
}
|
