mirror of
https://github.com/moonlight-stream/moonlight-qt
synced 2025-01-09 01:38:44 +00:00
Fix signed integer overflow found by UBSan
This commit is contained in:
parent
64789ea8bc
commit
6e34c21175
1 changed files with 2 additions and 2 deletions
|
@ -151,8 +151,8 @@ NvComputer::NvComputer(NvHTTP& http, QString serverInfo)
|
|||
this->displayModes = NvHTTP::getDisplayModeList(serverInfo);
|
||||
std::stable_sort(this->displayModes.begin(), this->displayModes.end(),
|
||||
[](const NvDisplayMode& mode1, const NvDisplayMode& mode2) {
|
||||
return mode1.width * mode1.height * mode1.refreshRate <
|
||||
mode2.width * mode2.height * mode2.refreshRate;
|
||||
return (uint64_t)mode1.width * mode1.height * mode1.refreshRate <
|
||||
(uint64_t)mode2.width * mode2.height * mode2.refreshRate;
|
||||
});
|
||||
|
||||
// We can get an IPv4 loopback address if we're using the GS IPv6 Forwarder
|
||||
|
|
Loading…
Reference in a new issue