ac/nir: fix integer comparisons with pointers