fix compile error for reserved "char" keyword