Fix signed/unsigned mismatch causing builds to fail.