summaryrefslogtreecommitdiffhomepage
path: root/tracker-freepie-udp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2017-09-23 19:22:18 +0200
committerStanislaw Halik <sthalik@misaki.pl>2017-09-23 19:22:18 +0200
commit2658bc66b8b68212594c71f7b51199921c3c1df9 (patch)
tree4edda3c602a069b310f9923db22b0fa87ef6b229 /tracker-freepie-udp
parentec34d6575fa03f1e137739ee1946f0ba9d3f2830 (diff)
use std::size
Diffstat (limited to 'tracker-freepie-udp')
-rw-r--r--tracker-freepie-udp/ftnoir_tracker_freepie-udp.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tracker-freepie-udp/ftnoir_tracker_freepie-udp.cpp b/tracker-freepie-udp/ftnoir_tracker_freepie-udp.cpp
index 3f717682..6985032c 100644
--- a/tracker-freepie-udp/ftnoir_tracker_freepie-udp.cpp
+++ b/tracker-freepie-udp/ftnoir_tracker_freepie-udp.cpp
@@ -95,7 +95,7 @@ void tracker_freepie::run() {
const int axis = order[i];
const int add_idx = add_indices[i];
int add = 0;
- if (add_idx >= 0 && add_idx < (int)(sizeof(add_cbx) / sizeof(*add_cbx)))
+ if (add_idx >= 0 && add_idx < (int)std::size(add_cbx))
add = add_cbx[add_idx];
pose[Yaw + i] = r2d * orient[axis] + add;
}