Real fix for signed/unsigned comparison. Without all the weird extra junk.