- Fixed overflow checking in some viewpitch code

Not detected by gcc, it was found by searching 'overflow' through all the code.