mirror of
https://github.com/LizardByte/Sunshine.git
synced 2026-11-29 08:41:19 +00:00
style(cpp): separate multiple variable declarations (#4795)
This commit is contained in:
1 parent
2b7af2119d
commit
188f1e2959
19 files changed
+134
-65
No files matched your search
+2
-1
@@ -1254,7 +1254,8 @@ namespace input {
|
||||
* @return The status of the batching operation.
|
||||
*/
|
||||
batch_result_e batch(PNV_REL_MOUSE_MOVE_PACKET dest, PNV_REL_MOUSE_MOVE_PACKET src) {
|
||||
short deltaX, deltaY;
|
||||
short deltaX;
|
||||
short deltaY;
|
||||
|
||||
// Batching is safe as long as the result doesn't overflow a 16-bit integer
|
||||
if (!__builtin_add_overflow(util::endian::big(dest->deltaX), util::endian::big(src->deltaX), &deltaX)) {
|
||||
|
||||
Reference in new issue
Block a user