offset - temp_offset - 2 * increment;
offset - temp_offset - (increment<<1);
	private int process_end_comment()throws ParseException {		int parser_state;		int length1;		while (true) {			ch = r.getChar();			if (XMLChar.isValidChar(ch)) {				if (ch == '-' && r.skipChar('-')) {					length1 =						offset - temp_offset - 2 * increment;					break;				}			} else				throw new ParseException(					"Error in comment: Invalid Char"						+ formatLineNumber());		}		if (r.getChar() == '>') {			//System.out.println(" " + temp_offset + " " + length1 + " comment " + depth);			if (encoding < FORMAT_UTF_16BE)				writeVTD(					temp_offset,					length1,					TOKEN_COMMENT,					depth);			else				writeVTD(					temp_offset >> 1,					length1 >> 1,					TOKEN_COMMENT,					depth);			//length1 = 0;			parser_state = STATE_DOC_END;			return parser_state;		}		throw new ParseException(			"Error in comment: '-->' expected"				+ formatLineNumber());		}