[overlay] fix comparison between signed/unsigned integer expressions warning