diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2017-09-23 19:22:18 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2017-09-23 19:22:18 +0200 |
commit | 2658bc66b8b68212594c71f7b51199921c3c1df9 (patch) | |
tree | 4edda3c602a069b310f9923db22b0fa87ef6b229 /tracker-hatire | |
parent | ec34d6575fa03f1e137739ee1946f0ba9d3f2830 (diff) |
use std::size
Diffstat (limited to 'tracker-hatire')
-rw-r--r-- | tracker-hatire/ftnoir_tracker_hat.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tracker-hatire/ftnoir_tracker_hat.cpp b/tracker-hatire/ftnoir_tracker_hat.cpp index ca28ae84..6e1b6586 100644 --- a/tracker-hatire/ftnoir_tracker_hat.cpp +++ b/tracker-hatire/ftnoir_tracker_hat.cpp @@ -144,7 +144,7 @@ void hatire::data(double *data) { s.EnableRoll, s.InvertRoll, HAT.Rot[s.RollAxis], data[Roll] }, }; - for (unsigned i = 0; i < sizeof(spec) / sizeof(*spec); i++) + for (unsigned i = 0; i < std::size(spec); i++) { auto& k = spec[i]; k.place = (k.sign ? -1.f : 1.f) * (k.enable ? k.input : 0.f); |