fixed promotion of int to double

Not entirely happy with this solution, as the upcoming step
argument will cause it to need to be changed again.