resolve warning in typinf.c