summaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorJacob Palecki <[email protected]>2021-04-08 00:02:37 -0700
committerJacob Palecki <[email protected]>2021-04-08 00:02:37 -0700
commit3b4a6f179d0c102f578024268f3cde129b384f55 (patch)
tree014faef29fb161673d6959dbcf39e3c16da55f14 /common
parentadd constructor and improvements (diff)
downloadrawaccel-3b4a6f179d0c102f578024268f3cde129b384f55.tar.xz
rawaccel-3b4a6f179d0c102f578024268f3cde129b384f55.zip
Fix return bug
Diffstat (limited to 'common')
-rw-r--r--common/accel-lookup.hpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/common/accel-lookup.hpp b/common/accel-lookup.hpp
index 5778de2..24b61e5 100644
--- a/common/accel-lookup.hpp
+++ b/common/accel-lookup.hpp
@@ -216,6 +216,8 @@ namespace rawaccel {
while (index <= last_arbitrary_index && data[index].applicable_speed < speed);
index--;
+
+ return index;
}
double inline apply(int index, double speed) const