Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b79781af authored by Kenny Root's avatar Kenny Root
Browse files

Use integer for loop counter instead of float

Change-Id: Iafaccbb3a3a7cbe0d67ed6827906d713c37ce89b
parent 9ef0f0d9
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -190,7 +190,7 @@ public final class VelocityTracker implements Poolable<VelocityTracker> {
            final long oldestTime = pastTime[oldestTouch];
            float accumX = 0;
            float accumY = 0;
            float N = (lastTouch - oldestTouch + NUM_PAST) % NUM_PAST + 1;
            int N = (lastTouch - oldestTouch + NUM_PAST) % NUM_PAST + 1;
            // Skip the last received event, since it is probably pretty noisy.
            if (N > 3) N--;