core: Avoid 64bit zero divide.