astdec: fix division by zero