resolve warning in typinf.c
Merge pull request #3999 from WalterBright/typinf-warning

resolve warning in typinf.c