mirror of
https://github.com/LizardByte/Sunshine.git
synced 2025-04-15 14:42:32 +00:00
Fix discarded std::clamp() result compiler warning
This commit is contained in:
parent
a4d9ee3fa4
commit
25d8e2b478
@ -587,8 +587,8 @@ namespace platf {
|
||||
weak_strong += data.rumble(tp);
|
||||
}
|
||||
|
||||
std::clamp<std::uint32_t>(weak_strong.first, 0, 0xFFFF);
|
||||
std::clamp<std::uint32_t>(weak_strong.second, 0, 0xFFFF);
|
||||
weak_strong.first = std::clamp<std::uint32_t>(weak_strong.first, 0, 0xFFFF);
|
||||
weak_strong.second = std::clamp<std::uint32_t>(weak_strong.second, 0, 0xFFFF);
|
||||
|
||||
old_rumble = weak_strong * gain / 0xFFFF;
|
||||
return old_rumble;
|
||||
|
Loading…
x
Reference in New Issue
Block a user