fix undefined function and add integer divisions #3168

Merged
merged 1 commit into from Mar 28, 2013