fixed a build bug in autotension.cpp
This was reported by a user on GitHub, and the user offered the fix that I added here. I think this was not a problem with older compilers but became a problem with newer compilers.
See https://github.com/BarrettTechnology/libbarrett/issues/26