Update stepper.cpp

Fix long to short conv issue.