summaryrefslogtreecommitdiff
path: root/libs/surfaces/control_protocol/control_protocol.cc
diff options
context:
space:
mode:
Diffstat (limited to 'libs/surfaces/control_protocol/control_protocol.cc')
-rw-r--r--libs/surfaces/control_protocol/control_protocol.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/libs/surfaces/control_protocol/control_protocol.cc b/libs/surfaces/control_protocol/control_protocol.cc
index 1c9ee83833..f95aadb2b8 100644
--- a/libs/surfaces/control_protocol/control_protocol.cc
+++ b/libs/surfaces/control_protocol/control_protocol.cc
@@ -117,12 +117,12 @@ ControlProtocol::prev_track (uint32_t initial_id)
}
if (id < 0) {
- id = limit;
- while (id > initial_id) {
- if ((cr = session->route_by_remote_id (id)) != 0) {
+ uint32_t i = limit;
+ while (i > initial_id) {
+ if ((cr = session->route_by_remote_id (i)) != 0) {
break;
}
- id--;
+ i--;
}
}