diff options
| author | Jacob Palecki <[email protected]> | 2021-04-08 00:02:37 -0700 |
|---|---|---|
| committer | Jacob Palecki <[email protected]> | 2021-04-08 00:02:37 -0700 |
| commit | 3b4a6f179d0c102f578024268f3cde129b384f55 (patch) | |
| tree | 014faef29fb161673d6959dbcf39e3c16da55f14 /common | |
| parent | add constructor and improvements (diff) | |
| download | rawaccel-3b4a6f179d0c102f578024268f3cde129b384f55.tar.xz rawaccel-3b4a6f179d0c102f578024268f3cde129b384f55.zip | |
Fix return bug
Diffstat (limited to 'common')
| -rw-r--r-- | common/accel-lookup.hpp | 2 |
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 |