mirror of
https://github.com/LizardByte/Sunshine.git
synced 2026-08-07 18:36:34 +00:00
style(cpp): separate multiple variable declarations (#4795)
This commit is contained in:
+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