``q`` will never be 0, so we can just drop this case, as far as I can tell.