private static int Finddiff2(byte[] bp, int offset, int bs, int be, int color) { return bs < be ? Finddiff(bp, offset, bs, be, color) : be; }