blend: fix unsigned/int issue discovered by houz' recently added checks