Fix subtracting values > 2^15 in the prologue/epilogue, by Nate Begeman.