Same here, declare with `local -i`.