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

warning produced with g++ with -Wall