Fix bug in calculation of ppcY (RoboVM)

Manual merge of PR #741